/my-bank-nest

A nest.js API to safe your money :D

Primary LanguageTypeScript

My-bank API Service version

A nest.js API to safe your money :D

Description

This is a answer about a test guide to a company

Requisites

  • Node.js
  • PostgreSQL (docker-compose available :)

Installation

$ npm install

Setup .env configuration file

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"

Running the app

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

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

OpenAPI documentation

Go to broswer and navigate to http://localhost:3000/api

License

Nest is MIT licensed.