- Install docker and docker compose
- In a terminal, run
source docker-aliases.sh
- You might need to run
npm i && npm run compile
in the contracts folder if you haven't already. - Start parity only:
launchpad-compose up parity
- While parity is running, deploy the contracts(run
npm run deploy
from the contracts folder). - Run
launchpad-compose build
to build the api and react images - Stop parity and run
launchpad-compose up
to start all the services
This is a simple node application which includes api documented via koa-docs, a healtcheck, basic error handling, a smart contract setup.
For a detailed overview of setting up your smart contracts, see here.
You will need to run an instance of parity:
npm run parity
Note Next commands will run from the
/contracts
folder make sure you had runcd contracts && npm i
first.
npm run compile
npm run deploy
Then for development, run:
npm i
npm run start
For details of how the contract is auto-deployed, please check the npm scripts in package.json.
Or, to manually deploy the contracts and start in production mode:
export CONTRACT_ADDRESSES=$(node ./bin/deployContract.js store-contract)
npm run start
npm run lint
npm test:watch
In order for us to monitor API services downtime, we choose to integrate with Pingdom's monitoring system to report and notify whenever services are unavailable.