I feel more at ease in JavaScript than in Go, so I decided to rewrite the api to Javascript.
What is it?
Backend to my Technik Informatyk application written in GO language. It is supposed to serve a snapshot of questions and exams to the user. Another functionality is to support multiplayer quizzes using websocket.
Database structure
You can find the commands with the database structure in the dbStruct.sql file.
Env variables
Name
What it does
SERVER_PORT
Define on which port the application should listen. (Default. 3000)
ENABLE_CDN
Specify whether the API should generate a content delivery network folder. You should set the location in your HTTP server e.g. nginx to this folder.
CDN_PATH
Folder where content will be generated for cdn.
MYSQL_CONNECTION_PATH
A path for the api to connect to the database. user:password@/dbname