The future of lab booking in one easy to use web app.
Development mode runs the backend with nodemon, so that as soon as you save it relaunches, and also starts up the vite development server and proxies trough the API.
- Clone the repo
- Run
npm i - Copy the
config.example.jsasconfig.jsand config if needed (if you edit the server port make sure to also change it in thefrontend/vite.config.jsfile) - Setup a postgres database, load the schema found in
docker/db/createTables.sqland configure the cedentials in theconfig.jsfile - In the root folder run
npm run dev - Open the site on
localhost:5173
- Clone the repo
- Run
npm run docker:dev:up
Production mode will automatically compile the frontend, and start up the backend server while statically hosting the frontend built files.
- Clone the repo
- Run
npm i - Copy the
config.example.jsasconfig.jsand config if needed - Setup a postgres database, load the schema found in
docker/db/createTables.sqland configure the cedentials in theconfig.jsfile - In the root folder run
npm run prod - Open the site on
localhost:3000
- Clone the repo
- Copy the
config.example.jsasconfig.jsand config if needed - Run
npm run docker:prod:up
The WEEETofono is a daemon that can run on any machine that is always on and connected to the internet. It is used to send out notifications to people in the lab when someone needs to be let in. The code is in the weeetofono folder. To install:
- Make sure you have
node.jsandffmpeginstalled, and make sure that theffplaycommand is available in the terminal - Run
npm iin theweeetofonofolder - Copy the
config.example.jsasconfig.jsand configure the settings and add the audio file to play, the api key can be generated in the web ui of the grillo - Run
npm startto start the daemon - It is recommended to use a process manager like
pm2to keep the daemon running, you can install it withnpm i -g pm2and then runpm2 start index.js --name weeetofonoand thenpm2 saveto make sure it starts on boot andpm2 startupto make sure it starts on boot
For more options look into the package.json file
- Backtround photo by Random Thinking on Unsplash