Gateway manager API written with Nest. Deployed here.
Any commits to master branch will update the service on Heroku until november when the free plan will be gone :( .
$ npm install
You have to set the following environment variables
# E.g postgresql://postgres:postgres@localhost:5432/gateway?schema=public
$ export DATABASE_URL={DB_URL}
$ export PORT=80
$ export JWT_SECRET=some-secret
Then you have to publish you schema
$ npx prisma db push
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
There are 2 tests for a proof of concept
# unit tests
$ npm run test