Skip to content

Backend for the PAC 2020 application (Conferencing app)

Notifications You must be signed in to change notification settings

milutindzunic/pac-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PAC Backend

Backend for the PAC 2020 application (Conferencing app)

Running locally

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.

Running as a part of PAC infrastructure

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.

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.

Releases

No releases published

Packages

No packages published