Skip to content

Commit 58d4a58

Browse files
committed
showcases readme update to run examples from root directory and restart docker image
1 parent 36ea57a commit 58d4a58

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

immudb-node-showcase/README.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,30 @@ npm install
1515
```
1616

1717

18-
Then run immudb docker image with exposed ports:
18+
19+
20+
Then run showcase from (git) root directory (To have predictable output it is
21+
best to restart immudb docker image before every showcase run):
1922

2023
```sh
21-
docker run -d -it --rm -p 8080:8080 -p 3322:3322 -p 9497:9497 -p 5432:5432 --name immudb codenotary/immudb:1.3.2
24+
$ docker run -d -it --rm -p 8080:8080 -p 3322:3322 -p 9497:9497 -p 5432:5432 --name immudb codenotary/immudb:1.3.2
25+
$ npx ts-node --esm .\immudb-node-schowcase\src\overview-showcase.ts
26+
$ docker stop immudb
2227
```
2328

24-
Then run example, e.g.:
29+
```sh
30+
$ docker run -d -it --rm -p 8080:8080 -p 3322:3322 -p 9497:9497 -p 5432:5432 --name immudb codenotary/immudb:1.3.2
31+
$ npx ts-node --esm .\immudb-node-schowcase\src\sql-showcase.ts
32+
$ docker stop immudb
33+
```
2534

2635
```sh
27-
npx ts-node --esm .\src\scanning.ts
36+
$ docker run -d -it --rm -p 8080:8080 -p 3322:3322 -p 9497:9497 -p 5432:5432 --name immudb codenotary/immudb:1.3.2
37+
$ npx ts-node --esm .\immudb-node-schowcase\src\zSet-showcase.ts
38+
$ docker stop immudb
2839
```
2940

30-
To have predictable output it is best to restart immudb docker image
31-
before every showcase run.
41+
3242

3343
## Create your own showcase and experiment
3444

0 commit comments

Comments
 (0)