forked from casper-ecosystem/lottery-demo-dapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust documentation for client/server setup
- Loading branch information
1 parent
be70937
commit 4425fef
Showing
3 changed files
with
40 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,35 @@ | ||
# Lottery Demo dApp Server | ||
# Lottery Demo dApp Server | ||
|
||
## Local setup | ||
|
||
1) Run infrastructure | ||
```bash | ||
make run-local-infra | ||
``` | ||
|
||
2) Use required node version | ||
|
||
```bash | ||
nvm use | ||
``` | ||
|
||
3) Setup local deps | ||
```bash | ||
make setup-local | ||
``` | ||
|
||
3) Run database migration | ||
|
||
```bash | ||
make sync-db | ||
``` | ||
|
||
4) Run API | ||
```bash | ||
npm run api:dev | ||
``` | ||
|
||
5) Run Event Handler | ||
```bash | ||
npm run event-handler:dev | ||
``` |