The project is written in React (create-react-app) and nodejs (expressjs).
yarn, docker, docker-compose
- Create a new file
.env
under the current directory and put your key, secret and timezone here.
API_KEY=xxx
API_SECRET=xxx
TZ=Asia/Taipei
-
Copy
server/custom-config.example.js
toserver/custom-config.js
, we can playground with the numbers in this config. -
Run
yarn
to install required packages
If you just want to start the bot and automatically lend your money out, you only need to start the backend service. It will check your remaining/submit funding offers every 3 minutes.
docker-compose up
Although the bot checks and submits offers regularly, you can run the script directly.
yarn auto-submit
yarn start
api: docker-compose up -d
and serve it in a proxy server such as nginx
ui: REACT_APP_API_URL='https://yourserverurl.com' yarn build