Note
No longer in use, refer to the stelofinance mono repo
This is the Backend API for the Stelo Finance platform, providing it's core functionality.
If you're looking for the API documentation, head over to our docs
In development use a .env file to set these, in prod set them in the environment
DB_CONNECTION_STRINGSet as the postgres URI connection stringADMIN_API_KEYSet as the api key to access admin routesPUSHER_HOSTSet as the URL for the Pusher instancePUSHER_APP_IDSet as the app id for the Pusher instancePUSHER_APP_KEYSet as the app key for the Pusher instancePUSHER_APP_SECRETSet as your app secret for the Pusher instance
This doesn't need to be set in a .env file during development, it's absence will default it to false
PRODUCTION_ENVSet totruewhen deployment is running in production
Install the golang-migrate software using the postgres cockroachdb tags (disregard cockroachdb if you're just using postgres)
Using the golang-migrate software, run the following command in the repo root
migrate -database $COCKROACHDB_URL -path migrations/ upWhere$COCKROACHDB_URLis an environment variable. Note, Stelo uses CockroachDB, if you wish to also then prefix this connection string withcockroach://notpostgresql://