Automatic court reservations
Find a file
2023-05-23 15:09:11 -05:00
docker Lots of changes to project structure 2023-05-23 15:09:11 -05:00
src Fixing some errors due to changing reservation requests 2023-05-23 15:09:11 -05:00
tests Updating snapshot and running prettier on tests 2023-05-23 15:09:11 -05:00
.eslintrc.json Adding some pretty stuff 2023-05-23 15:09:09 -05:00
.gitignore Removing some terraform artifacts 2023-05-23 15:09:11 -05:00
.nvmrc Adding .nvmrc 2023-05-23 15:09:09 -05:00
.prettierrc Adding some new packages for password/database features; updating old packages 2023-05-23 15:09:11 -05:00
babel.config.json Adding some pretty stuff 2023-05-23 15:09:09 -05:00
jest.config.js Adding some pretty stuff 2023-05-23 15:09:09 -05:00
package-lock.json Updating some outdated deps 2023-05-23 15:09:11 -05:00
package.json Updating some outdated deps 2023-05-23 15:09:11 -05:00
README.md Adding a simple diagram so I don't forget what I'm doing later 2023-05-23 15:09:11 -05:00
tsconfig.json Fixing issues with rollup and running locally 2023-05-23 15:09:10 -05:00

autobaan

Automatic court reservation!

Setup

Requirements

  • Node.js (14.x)
  • npm (8.x)
  • 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 |<---------------------------|
                                        |==========|