This project brings together everything needed to work with PostgreSQL using TypeORM and at the same time an authentication with JWT and roles loaded.
@nestjs/common
@nestjs/config
@nestjs/core
@nestjs/mapped-types
@nestjs/passport
@nestjs/platform-express
@nestjs/swagger
@nestjs/typeorm
bcrypt
class-transformer
class-validator
joi
passport
pg
reflect-metadata
rxjs
typeorm
uuid
# 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
- git clone (URL SSH)
- Run
npm i
- Clone the
.env.template
file and rename it to.env
- Update the environment variables
- Download the Docker image (this is done only once)
docker pull postgres:15.3
- Start the database:
docker compose up -d