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.js
asconfig.js
and config if needed (if you edit the server port make sure to also change it in thefrontend/vite.config.js
file) - Setup a postgres database, load the schema found in
docker/db/createTables.sql
and configure the cedentials in theconfig.js
file - In the root folder run
npm run dev
- Open the site on
localhost:5173
- Clone the repo
- Copy the
config.example.js
asconfig.js
and config if needed (if you edit the server port make sure to also change it in thefrontend/vite.config.js
file) - Create a
.env
file and enterDEVELOPMENT=true
and optionallyADDJUNKDATA=true
to add some demo data to the database as well - Create an empty folder in the root path called
database
- Run
docker-compose 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.js
asconfig.js
and config if needed - Setup a postgres database, load the schema found in
docker/db/createTables.sql
and configure the cedentials in theconfig.js
file - In the root folder run
npm run prod
- Open the site on
localhost:3000
- Clone the repo
- Copy the
config.example.js
asconfig.js
and config if needed (if you edit the server port make sure to also change it in thefrontend/vite.config.js
file) - Create a
.env
file and enterDEVELOPMENT=false
- Create an empty folder in the root path called
database
- Run
docker-compose 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.js
andffmpeg
installed, and make sure that theffplay
command is available in the terminal - Run
npm i
in theweeetofono
folder - Copy the
config.example.js
asconfig.js
and 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 start
to start the daemon - It is recommended to use a process manager like
pm2
to keep the daemon running, you can install it withnpm i -g pm2
and then runpm2 start index.js --name weeetofono
and thenpm2 save
to make sure it starts on boot andpm2 startup
to make sure it starts on boot
For more options look into the package.json
file