new project yarn create vite Authorization with SSH on GitHub
- git init
- git remote add origin "your link HSS"
- git remote -v
- git add .
- git commit -m "
- git push origin master
Create new branch
- git checkout -b feat/newBranches
- git checkout -b bugFix/newBranches
NestJS new modules
- nest g module name-module
- nest g controller name-controller --no-spec
- nest g service name-service --no-spec
Docker
- docker-compose up
Prisma
- npm install prisma --save-dev
- npm install @prisma/client
- npx prisma init
- npx prisma migrate dev --name new_migrate add changes -- You need to make chang in .env (name,password,localhost,nameDB)
JWT
- npm install --save @nestjs/passport passport passport-jwt
- npm install --save-dev @types/passport-jwt
- npm install --save @nestjs/jwt
- npm i @nestjs/config