2021-11-15 12:32:49 +01:00
|
|
|
# autobaan
|
|
|
|
|
|
2026-03-24 17:03:31 +01:00
|
|
|

|
|
|
|
|
|
2021-11-15 12:32:49 +01:00
|
|
|
Automatic court reservation!
|
|
|
|
|
|
|
|
|
|
## Setup
|
|
|
|
|
|
|
|
|
|
### Requirements
|
|
|
|
|
|
2022-11-07 11:44:57 +01:00
|
|
|
- Node.js (18.x)
|
2021-11-15 12:32:49 +01:00
|
|
|
- npm (8.x)
|
2026-03-24 17:01:32 +01:00
|
|
|
- nvm
|
2023-05-26 15:43:14 -05:00
|
|
|
- Docker
|
|
|
|
|
- redis
|
2021-11-15 12:32:49 +01:00
|
|
|
|
|
|
|
|
#### Using nvm
|
|
|
|
|
|
|
|
|
|
1. Install [nvm](https://github.com/nvm-sh/nvm#installing-and-updating)
|
|
|
|
|
1. `nvm use` will use version specified in `.nvmrc`
|
|
|
|
|
1. `nvm install-latest-npm` will upgrade NPM to latest version (8.x)
|
|
|
|
|
|
|
|
|
|
### Usage
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
npm install
|
2023-05-26 15:43:14 -05:00
|
|
|
npm start:dev
|
2023-01-20 09:38:50 +01:00
|
|
|
```
|
2023-02-10 23:51:41 +01:00
|
|
|
|
|
|
|
|
## 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
|
|
|
|
|
|
2026-03-24 17:01:32 +01:00
|
|
|
Using woodpecker to deploy this via pm2.
|