This project brings together everything needed to work with Postgres using type orm and at the same time an authentication with JWT and roles loaded.
yarn add @nestjs/config
yarn add @nestjs/typeorm typeorm pg
yarn add uuid
yarn add -D @types/uuid
yarn add class-validator class-transformer
yarn add class-validator class-transformer
yarn add bcrypt
yarn add -D @types/bcrypt
yarn add @nestjs/passport passport
yarn add @nestjs/jwt passport-jwt
yarn add -D @types/passport-jwt
- Clone project
- Execute:
yarn install - Clone the
.env.template`` file and rename it to.env```. - Change environment variables
- Change the user entity in case you need other information there
- Pull up the database in case you need it ````docker-compose up -d```.
- Run the project: ````yarn start:dev```.