A nest.js API to safe your money :D
This is a answer about a test guide to a company
- Node.js
- PostgreSQL (docker-compose available :)
$ npm install
There is a file .env.example
with all variables to use, create a .env
file like that:
DATABASE_URL="postgresql://postgres:postgres@localhost:5440/my-bank-test?schema=public"
JWT_SECRET="my-secret-credential"
First you need run the migrations
$ npx prisma migrate dev
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Go to broswer and navigate to http://localhost:3000/api
Nest is MIT licensed.