Skip to content

anataliocs/arbitrage-apes-backend

Repository files navigation

Stellar Logo

Arbitrage Apes Backend

Build Status License: MIT

Open in GitHub Codespaces

Table of Contents

Description

Nest Arbitrage Apes Contract Backend for the Stellar Development Foundation.

Check out the Discord here Stellar Discord.

Project Setup

Prerequisites

  • Node.js >= 20.x
  • pnpm
  • Docker (optional, for containerized deployment)

Installation

$ pnpm install

Compile and run

Choose a Testnet RPC Provider

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

Local Dev Tools

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

Run tests

# unit tests
$ pnpm run test

# e2e tests
$ pnpm run test:e2e

# test coverage
$ pnpm run test:cov

Health check

http://localhost:3000/health

Docker

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

License

Nest is MIT licensed.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published