sudo apt install nodejs npm sqlite3
In the data/ directory:
sqlite3 workflows.db < schema.sql
This will create an empty database. You can verify the schema by running:
sqlite3 workflows.db ".schema"
cdto the server/ directory- Create a
.envfile (you can copy the .env.example). ChangeHOSTto0.0.0.0if you want to enable access from a different machine. - Run
npm installto install deps - Run
npm run testto run the API tests as a way to validate the setup - Run
node server.jsornpm run startto start the server (append&to run the server in background mode. Alternatively, runnpm run devto run in development mode.