- Node v12 or greater
- A Postgres database
# First install dependencies
npm ci
# Then set up your environment
cp .env.example .env
nano .env
# Lastly, you can run project in dev mode
npm run watch-debug
npm run build
Create a build for the projectnpm run serve
Will serve the project from the buildnpm run test
Will run test from the buildnpm run watch-debug
Serve and watch the projectnpm run watch-test
Run test and watch for changenpm run migration:run
Run the migration for the dbnpm run migration:rollback
Rollback last executed migrationnpm run clug
Execute a custom clug script (see next section)
npm run clug -- create-user [ARGS]
Create a new user in the database
docker-compose down --rmi local -v //Delete all containers docker-compose up -d //Build containers
- docker-compose exec backend sh
- npm run clug seeds