Skip to content

Commit

Permalink
[faucet/backend] fix: update readme
Browse files Browse the repository at this point in the history
problem:  missing deploy infomation
solution: patch readme docs
  • Loading branch information
AnthonyLaw authored and Wayonb committed Jul 12, 2023
1 parent 3f87194 commit 964ad65
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions faucet/backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,29 @@ cd faucet/backend
npm install
```

3. Create a database (sqlite) file in root, or any local path you want, you need assign the path in `.env` file.

```
sqlite3 claim.db
```

3. Create `.env` in [backend/](/backend/) root directory, containing all balance and amount in absolute units.

```env
NEM_FAUCET_ADDRESS=<Address>
NEM_FAUCET_PRIVATE_KEY=<private key>
NEM_ENDPOINT=http://hugetestalice.nem.ninja:7890
SYMBOL_FAUCET_ADDRESS=<Address>
SYMBOL_FAUCET_PRIVATE_KEY=<private key>
SYMBOL_ENDPOINT=https://201-sai-dual.symboltest.net:3001
RECEIPT_MAX_BALANCE=200000000
SEND_OUT_MAX_AMOUNT=500000000
MOSAIC_DIVISIBILITY=6
PORT=8080
JWT_SECRET=secret
MIN_FOLLOWERS_COUNT=10
MIN_ACCOUNT_AGE=30
DB_PATH=./claim.db
```

4. Start server.
Expand Down

0 comments on commit 964ad65

Please sign in to comment.