Skip to content

Backend API for the core functionality of the Stelo Finance platform.

License

Notifications You must be signed in to change notification settings

stelofinance/api

Repository files navigation

Stelo Finance

This is the Backend API for the Stelo Finance platform, providing it's core functionality.

API Documentation

If you're looking for the API documentation, head over to our docs

Environment Variables

In development use a .env file to set these, in prod set them in the environment

  • DB_CONNECTION_STRING Set as the postgres URI connection string
  • ADMIN_API_KEY Set as the api key to access admin routes
  • PUSHER_HOST Set as the URL for the Pusher instance
  • PUSHER_APP_ID Set as the app id for the Pusher instance
  • PUSHER_APP_KEY Set as the app key for the Pusher instance
  • PUSHER_APP_SECRET Set 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_ENV Set to true when deployment is running in production

Database setup

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/ up Where $COCKROACHDB_URL is an environment variable. Note, Stelo uses CockroachDB, if you wish to also then prefix this connection string with cockroach:// not postgresql://

About

Backend API for the core functionality of the Stelo Finance platform.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published