# To run the application, provide a postgres connection string in the DATABASE_URL environment variable. Or use docker-compose:
$ docker-compose up -d
# Next, apply database migrations:
$ env $(cat .env.development) npx prisma migrate deploy
# development
$ env $(cat .env.development) npm run start
# To run the tests, provide a postgres connection string in the DATABASE_URL environment variable (can also be started with docker-compose).
$ docker-compose up -d
# Next, apply database migrations to the test database:
$ DATABASE_URL=postgresql://postgres:postgres@localhost:5432/tests?schema=public npx prisma migrate deploy
# run tests
$ npm run test
# test coverage
$ npm run test:cov