Skip to content

onier9702/Basic-Backend-With-NestJs

Repository files navigation

Nest Logo

Description

Basic-Backend-With-NestJs using typeOrm, Migrations with mysql, applying decorators, strategies and more content of Nest Js as Express.Multer.File as a package

Brief Description

Testing Migration , backend with Nest FrameWork and mysql Database in my localhost PC.

Installations

  1. @nestjs/config so can use ConfigModule
npm i @nestjs/config
  1. @nestjs/typeorm and typeorm
npm i @nestjs/typeorm typeorm
  1. mysql
npm i mysql
  1. class-validator class-transformer ( to validate all data passed by Frontend )
npm i class-validator class-transformer
  1. uuid // This uuid require a second installation to works
npm i uuid
npm i --save-dev @types/uuid
  1. To enable better type safety, let’s install the multer types package.
npm i -D @types/multer
  1. Cloudinary to host my files( images and videos )
npm i cloudinary
  1. To create encrypted passwords in Authentication of Users
npm i bcrypt
npm i -D @types/bcrypt
  1. Passport in Nestjs and passport from npm
npm i @nestjs/passport passport
  1. passport with JWT and nestjs with jwt
npm i @nestjs/jwt passport-jwt
  1. types of passport-jwt
npm i -D @types/passport-jwt

Steps to get started

  1. Clone the repository and run npm i

  2. Raise up the Nest backend

npm run start:dev

About

Basic-Backend-With-NestJs using typeOrm, Migrations with mysql, applying decorators, strategies and more content of Nest Js as Express.Multer.File as a package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors