Skip to content

msal4/toastnotes-server

Repository files navigation

The backend for the toast notes app.

Requirements

Setup

  • Create a .env file
    cp .env.example .env
    set the JWT_SECRET, and DATABASE_URL for example postgres://<user>:<password>@<host>:<port>/<database-name> in .env

Run

  • Using docker
    docker build -t <app-tag> .
    docker run -it <app-tag>
  • Without docker
    make dev

Deploy

  • Set GIN_MODE=release in .env
  • Docker Compose
    • create a docker-compose.yml file and add your dependencies there (e.g. postgres)
    • upload to your server (e.g. using git)
    • build and run using docker-compose
  • Dokku
    • use the postgres plugin and link it to toastnotes
    • using dokku config set your environment variables
    • push to dokku, for more details checkout the dokku docs

License

See LICENSE

About

The backend for the toast notes app.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages