Backend for the PAC 2020 application (Conferencing app)
To run locally, simply run the application with:
go run .\main.go
The application will start with an embedded sqlite3 database, on port 9090.
To initialize the database with test data, call the init endpoint with curl -XPOST localhost:9090/initDB
. The call drops and recreates all tables and adds the test data into them.
The infrastructure expects a docker image tagged as pac-backend
. To build the image, run:
docker build -t pac-backend .
The image currently cannot run an embedded sqlite3 database, so it is intended to be used with mysql. The connection can be configured using environment variables.
The PAC Backend application is configured using environment variables which are listed in the .env file in the root directory of the project.