- Holds the list of allowed addresses
- Allows to add an address
- Allows to update the merkle tree
- Clone this repo:
git clone https://github.com/BigWhaleLabs/dosu-invites-allowlist-backend
- Launch the mongo database locally
- Create
.env
with the environment variables listed below - Run
yarn
in the root folder - Run
yarn start
And you should be good to go! Feel free to fork and submit pull requests.
Name | Description |
---|---|
MONGO |
URL of the mongo database |
PORT |
Port to run server on (defaults to 1337) |
DOSU_INVITES_CONTRACT_ADDRESS |
Address of the contract |
CONTRACT_OWNER_PRIVATE_KEY |
Private key of the contract owner |
ETH_NETWORK |
Ethereum network to connect to (defaults to @bwl/constants) |
ETH_RPC |
Ethereum node RPC URI (defaults to @bwl/constants) |
PASSWORD |
Password for protected routes |
Also, please, consider looking at .env.sample
.