Automatic court reservations
Find a file
2024-04-11 11:46:25 +02:00
.github/workflows Adding some good-ole unit tests to CI 2024-03-28 17:59:12 +01:00
database/migrations Adding feature to add multiple people to a reservation 2024-04-09 16:49:01 +02:00
docker Another reorganization of docker layers 2024-03-14 15:40:08 +01:00
src Making screenshots on error only happen in non-time sensitive flows and switching back to using a queue 2024-04-11 11:46:25 +02:00
test Fixing some issues with the cron job waiting until 7 and adding a unit test for it 2024-04-10 11:30:51 +02:00
.eslintrc.js Adding recurring reservations and updating some linting/formatting rules 2023-06-29 10:32:09 +02:00
.gitignore Switching to use SQLite instead of MySQL 2023-05-23 15:09:14 -05:00
.nvmrc Updating node version, improving build process and adding required modules to dev dependencies 2023-05-23 15:09:11 -05:00
.prettierrc Big ole refactor to using nestjs for some practice 2023-05-26 15:43:14 -05:00
data-source.ts Correcting entity and adding migration 2023-06-29 10:39:27 +02:00
nest-cli.json Big ole refactor to using nestjs for some practice 2023-05-26 15:43:14 -05:00
package-lock.json Bump word-wrap from 1.2.3 to 1.2.5 2023-09-13 19:36:07 +00:00
package.json Adding some good-ole unit tests to CI 2024-03-28 17:59:12 +01:00
README.md Big ole refactor to using nestjs for some practice 2023-05-26 15:43:14 -05:00
tsconfig.build.json Big ole refactor to using nestjs for some practice 2023-05-26 15:43:14 -05:00
tsconfig.json Removing baseUrl from tsconfig 2024-03-12 13:01:41 +01:00

autobaan

Automatic court reservation!

Setup

Requirements

  • Node.js (18.x)
  • npm (8.x)
  • nvm
  • Docker
  • redis

Using nvm

  1. Install nvm
  2. nvm use will use version specified in .nvmrc
  3. nvm install-latest-npm will upgrade NPM to latest version (8.x)

Usage

npm install
npm start:dev

Deployment

  • Create a volume which will store the SQLite database file using docker-like
  • Build image via provided dockerfile
  • Run container with built image exposing port 3000 and mapping the aforementioned volume to /app/db

CD

So I don't forget... I am using GHA to create a container image which I pull on my server using podman. This then restarts the container on my server with the latest image. The container is backed by a systemd service to restart and start on boot.