~aninternettroll/arsoppgave.backend

211def49 — AnInternetTroll 2 years ago
Docker setup improvements
dd8db7a7 — AnInternetTroll 2 years ago
Add auth flow diagram
bf6b7693 — AnInternetTroll 2 years ago
Use strings for IDs, edit imports to not use the new type syntax and do not test while building the Docker image

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~aninternettroll/arsoppgave.backend
read/write
git@git.sr.ht:~aninternettroll/arsoppgave.backend

You can also use your local clone with git send-email.

#Dependencies

  • Deno

#Dev dependencise

  • Make
  • sqlite3
  • dia diagram

#Configuration

Configuration is done with enviormental variables (or a .env file). Here's an example of values

PORT=8080
SQLITE=database.sqlite
ADMIN_USERNAME=luca
ADMIN_PASSWORD=qwer1234
ADMIN_EMAIL=support@localhost.com
LOG_LEVEL=NOTSET

#Production

To run in production simply run.

make run

#Docker/Podman

For running in a container there's 2 commands that must be ran

First build the image.

# make container-build

Then either run it manually or with

# make container-run

One issue with the make script is that it will not have any enviormental variables set. Ideally you should pass --env-file=.env or something similar (podman(1))