@@ -5,40 +5,42 @@ join our [telegram](https://t.me/joinchat/CgTftxXJvp6iYayqDjP7lQ) or [gitter](ht
55
66![ ] ( https://i.imgur.com/oGPIbZQ.jpg )
77
8- ### Building
8+ ## Building
99
10- clone
11- ` git clone https://github.com/playproject-io/datdot-service.git `
10+ Clone
11+ ##### ` git clone https://github.com/playproject-io/datdot-service.git `
1212
13- change directory
14- ` cd service `
13+ Install dependencies
14+ ##### ` npm install `
1515
16- install dependencies
17- ` npm install `
1816
1917To run the service, you will also need to run the [ datdot-substrate] ( https://github.com/playproject-io/datdot-substrate ) chain
2018
21- clone
22- ` git clone ` git clone https://github.com/playproject-io/datdot-substrate.git`
2319
24- build
25- ` cargo build -p datdot-node --release `
20+ Clone
2621
27- purge storage
28- ` ./target/release/datdot-node purge-chain --dev `
22+ ##### ` git clone https://github.com/playproject-io/datdot-substrate.git `
2923
30- ### Running
24+ Build
3125
32- We are using scenarios to debug the flow. This scenario is part of our first milestone (Phase 1).
26+ ##### ` cargo build -p datdot-node --release `
3327
34- 1 . To run the chain and the service process at once use the command ` node cli.js ` (recommended)
28+ ## Running
29+ This scenario is part of our first milestone (Phase 1). To run it together with the chain, use:
3530
36- 2 . To run the chain and the service process individually, use:
31+ ##### ` node cli.js `
3732
38- $` DEBUG=*,-hypercore-protocol node lab/scenarios/mvp-1.js ` (for [ datdot-service] ( https://github.com/playproject-io/datdot-service ) )
39- $` .target/release/datdot-node --dev ` ([ datdot-substrate] ( https://github.com/playproject-io/datdot-substrate ) )
33+ To re-run the scenario, you will need to each time purge the chain storage using ` ./target/release/datdot-node purge-chain --dev ` .
4034
41- 3 . To re-run the scenario, you will need to purge the chain storage (for ` ./target/release/datdot-node purge-chain --dev ` )
35+ If you want, you can also run the chain and the service as independent processes:
36+
37+ Service
38+
39+ ##### ` DEBUG=*,-hypercore-protocol node lab/scenarios/mvp-1.js `
40+
41+ Chain
42+
43+ ##### ` .target/release/datdot-node --dev `
4244
4345
4446## License
0 commit comments