Skip to content

lekhulal/nodejs-structure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs-structure

#Nodejs #API #project #structure

image

  1. Error Handler
  2. Middlewares
    • Error Handling
    • User Authorization
  3. Security packages
    • helmet
    • cors
    • xss
    • rate Limiter
    • mongoSanitize
  4. JWT Authentication
    • Login
    • Logout
    • Bearer Authorization
  5. Cookie Parser
    • Token Handling
  6. Routing
    • Router level middlewares
  7. Models
  8. Controllers
  9. Mongoose