This repo contains the basic layout of our database services, it runs a node server and includes a SQLite database
The database holds two tables: user data and game data. User management container only accesses the user data table
** if you want to change the structure of the database table(s), you must delete the db file in the database container: src/database/database.db AND remove the volume to then see the changes and create a new database with the updated table(s)
To continue and add to this repo, branch subjects:
- password hashing
- google authentication
- two-factor authentication
After you've created a repo based on this template you should setup the branch rules.
- In your repo go to
Settings -> General, scroll down toPull Requestsand disableAllow merge commits. - In
Allow squash mergingset theDefault commit messagetoPull request title.
- Go to
Settings -> Rules -> Rulesetsand create aNew ruleset -> New branch rulesetgive it a name like "protect main" - The the
Enforcement statustoActive. - Scroll down to
TargetsAdd target -> Include default branch. - Scroll further down to
Rulesand enableRequire a pull request before merging. - Expand the
Additional settingsthe setAllowed merge methodsto Squash and Rebase.
This is because after you fork github automagically disables any actions, in order to enable them just goto the Actions tab in the repo's homepage.
Set the name in package.json to the name of the service.
- docker
- building the container
make devbuild
- running the container
make rundev
- building the container
make prodbuild
- running the container
make runprod
make clean