This is an AdonisJS project bootstrapped with create-adonis-ts-app
First, run the development server:
node ace serve --watch
Open http://localhost:8080 with your browser to see the result.
- Create a postgres database and point the app to it in the .env file
- Create a redis server and point the app to it in the .env file
- Go here to get a Fincra account. Fincra is the payment service provider we're using to collect payments and make payouts in tradfi. Its free to create an account. Use the API keys provided in the .env file. Also enable webhooks. After deploying app, set the webhook url to the new app url in the Fincra dashboard. Like this
{new_app_url}/order/fincra-webhook
- The ANCHOR_PROVIDER_URL can be any devnet RPC url.
- For the ADMIN environment variable, you can create a Solana wallet and export the Keypair in byte array format. Make sure this is the same wallet used as ADMIN in the Solana program.
- Go here for exchange rate APIs. Use API keys in .env
- Mint tokens for USDC and USDT. Use mint addresses in .env file. Make sure they are the same used to initialise Solana program. Instructions here
- checkout env.example for values for remaining variables.
run node ace migration:run