Arbitrage Apes Backend
Nest Arbitrage Apes Contract Backend for the Stellar Development Foundation.
Check out the Discord here Stellar Discord.
- Node.js >= 20.x
- pnpm
- Docker (optional, for containerized deployment)
$ pnpm install
Choose a Testnet RPC Provider
- Testnet public RPC Providers
- Set env files for your local:
.env.local
,.env.dev
,.env.ci
STELLAR_RPC_SERVER_URL=https://soroban-testnet.stellar.org
# development
$ pnpm run start
# watch mode
$ pnpm run start:dev
# production mode
$ pnpm run start:prod
Open API docs:
http://localhost:3000/api
You may have CORS issues on localhost. You can try opening Chrome in a sandbox with web security disabled:
- This is ONLY for local dev, and it uses a separate user data directory, runs in incognito with a new window each time
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome http://localhost:63342/stellar-arbitrage-apes-future-yacht-club/index.html?_ijt=q9fn6vaje10r5bcfgmcmafoo6p&_ij_reload=RELOAD_ON_SAVE --args --disable-web-security --user-data-dir="~/.chrome.dev.session/" --incognito --new-window
# unit tests
$ pnpm run test
# e2e tests
$ pnpm run test:e2e
# test coverage
$ pnpm run test:cov
Build image locally
docker build --platform linux/amd64 -t arbitrage-apes-backend .
Push to DockerHub
docker tag arbitrage-apes-backend:latest chrisstellar/arbitrage-apes-backend:latest
docker push chrisstellar/arbitrage-apes-backend:latest
Nest is MIT licensed.