diagrams is a service to manage BPMN diagrams.
Add a .env file with the following variables:
- JWT_KEY (default = 1234)
- KNEX_ENV (suggested value = docker)
- NODE_ENV (suggested value = docker)
- POSTGRES_USER (default = postgres)
- POSTGRES_PASSWORD (default = postgres)
- POSTGRES_DB (default = diagrams)
- POSTGRES_HOST (default = localhost)
- POSTGRES_PORT (default = 5432)
- DIAGRAMS_LOG_LEVEL (default = info)
- CORE_LOG_LEVEL (default = info)
To run app on docker, just run the command:
docker-compose up
Make sure ports 5000 and 5432 are free to use on your localhost.
You can run tests by running:
npm run test
Note: some tests will fail if you don't have the database running.
When the app is running along with the database you can access the following swagger to check out the API routes and test them yourself: