Skip to content
/ nest-kickstarter Public template

🀠 a template for NestJS includes JWT authentication, SHA256 hashing and MongoDB connection.

Notifications You must be signed in to change notification settings

noirrs/nest-kickstarter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🀩 Nest Kickstarter

🀠 Cool Template for NestJS includes JWT authentication, SHA256 hashing and MongoDB connection.

🦾 Features

  • using fastify

  • swagger ui

  • fastify helmet

  • auto validation with class validator

  • customizable guards and decorators

  • MongoDB connection

  • JWT authentication

  • Perfect structure

✍️ Repository 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

πŸ”— Resources

NestJS

Mongoose

Typescript

MongoDB

MongoDB Compass (for local usage)

Another Useful Repo

Medium Article

Running the app

# development
$ npm run start

πŸ“± Contact

About

🀠 a template for NestJS includes JWT authentication, SHA256 hashing and MongoDB connection.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published