Automatic court reservations
Find a file
2023-02-10 14:33:04 +01:00
.github/workflows Correcting docker build command 2023-01-28 11:28:46 +01:00
docker Adding label for GHCR image 2023-01-29 14:46:59 +01:00
src Adding database debug log for database queries 2023-02-10 14:33:04 +01:00
tests Adding some routers to http server that handle more requests to /reservations and /cron 2023-01-30 12:39:05 +01:00
.eslintrc.json Adding some pretty stuff 2021-11-24 00:00:22 +01:00
.gitignore Switching to use SQLite instead of MySQL 2023-01-28 10:51:46 +01:00
.nvmrc Updating node version, improving build process and adding required modules to dev dependencies 2022-11-07 11:44:57 +01:00
.prettierrc Adding some new packages for password/database features; updating old packages 2022-10-23 11:54:35 +02:00
jest.config.ts Spliting out server code, adding unit test for server 2022-11-27 15:59:20 +01:00
package-lock.json Switching to use SQLite instead of MySQL 2023-01-28 10:51:46 +01:00
package.json Correcting docker build command 2023-01-28 11:28:46 +01:00
README.md Removing rollup and relying on tsc to make builds. Also updated Docker to have a working development version 2023-01-20 09:38:50 +01:00
tsconfig.json Removing rollup and relying on tsc to make builds. Also updated Docker to have a working development version 2023-01-20 09:38:50 +01:00

autobaan

Automatic court reservation!

Setup

Requirements

  • Node.js (18.x)
  • npm (8.x)
  • gcc (g++-12)
  • nvm (optional)

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 run local <username> <password> <year> <month> <day> <startTime> <endTime> <opponentName> <opponentId>

Architecture

|======|
| User |
|======|
    |
[requests reservation]
    |
    |
    V
|===========|                             /---\                           |==========|
| Scheduler | ---[checks possibility]--->/ ok? \--[y/ forward request]--> | Reserver |
|===========|                            \     /                          |==========|
                                          \---/                                 |
                                            |                                   |
                                          [n/ save request]      [find possible, saved reservations]
                                            |                                   |
                                            V                                   |
                                        |==========|                            |
                                        | Database |<---------------------------|
                                        |==========|