To start the app simply write:
npm i && npm start
The dApp will receive connections at: http://localhost:8080
To run tests (backend and frontend) simply do:
npm test
- Backend code /server/dai.js
- Frontend code /frontend/index.js
To query directly the DAI balance of the address:
- Route: http://localhost:3000/balance/:address
- Method: GET
- Param: ETH address
- Response:
{
success: true,
DAIBalance: {},
TokenInfo: {}
}
To build and run the app as Docker image simply run:
docker build -t <app_name> .
docker run -p 8080:8080 <app_name>