π€ Cool Template for NestJS includes JWT authentication, SHA256 hashing and MongoDB connection.
-
using fastify
-
swagger ui
-
fastify helmet
-
auto validation with class validator
-
customizable guards and decorators
-
MongoDB connection
-
JWT authentication
-
Perfect structure
ββ .github
β ββ FUNDING.yml
ββ src
β ββ main.ts
β ββ app.service.ts
β ββ app.module.ts
β ββ app.controller.ts
β ββ core
β β ββ decorators
β β β ββ bypass.guard.ts
β β ββ guards
β β β ββ jwt.guard.ts
β β β ββ bypass.guard.ts
β β β ββ admin.guard.ts
β β ββ initializers
β β β ββ swagger.initializer.ts
β β β ββ morgan.initializer.ts
β β β ββ cors.initializer.ts
β β ββ lib
β β β ββ index.ts
β β ββ strategies
β β β ββ jwt.strategy.ts
β β ββ utils
β β ββ nullCheck.ts
β β ββ idGenerator.ts
β β ββ encode.ts
β ββ modules
β ββ user
β β ββ user.service.ts
β β ββ user.module.ts
β β ββ user.controller.ts
β β ββ etc
β β ββ user.schema.ts
β β ββ register.dto.ts
β β ββ find.dto.ts
β ββ api
β β ββ api.service.ts
β β ββ api.module.ts
β β ββ api.controller.ts
β ββ auth
β ββ auth.service.ts
β ββ auth.module.ts
ββ .eslintrc.js
ββ .gitignore
ββ .prettierrc
ββ README.md
ββ nest-cli.json
ββ package-lock.json
ββ package.json
ββ tsconfig.build.json
ββ tsconfig.json
MongoDB Compass (for local usage)
# development
$ npm run start