The backend for the toast notes app.
- Create a .env file
set the
cp .env.example .env
JWT_SECRET, andDATABASE_URLfor examplepostgres://<user>:<password>@<host>:<port>/<database-name>in .env
- Using docker
docker build -t <app-tag> . docker run -it <app-tag>
- Without docker
make dev
- Set
GIN_MODE=releasein .env - Docker Compose
- create a
docker-compose.ymlfile and add your dependencies there (e.g. postgres) - upload to your server (e.g. using git)
- build and run using
docker-compose
- create a
- Dokku
- use the postgres plugin and link it to toastnotes
- using
dokku configset your environment variables - push to dokku, for more details checkout the dokku docs
See LICENSE