ito-org / api-backend

Backend for ito
Other
9 stars 5 forks source link
api backend buildforcovid19 health privacy tcn-coalition theglobalhack wirvsvirushack

ito - Backend API

API for supplying and verifying TCNs of users confirmed infected

Tests Docs License

Prerequisites

Run it

Run the backend directly by spinning up a Postgres Docker container and running go run github.com/ito-org/api-backend. Alternative, you can spin up the backend in combination with the database via docker-compose. Run docker-compose build && docker-compose up -d.

IMPORTANT: Keep in mind that you need to set the environment variables as shown below.

Environment variables

You can supply database credentials through environment variables. The following are available:

You can either set them directly when running the application or set them through an .env file in the project root. For docker-compose, the .env file is required.