Skip to content

unpseudocomplique/janio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express / mongoose file structure generator

Usage

npm install -g janio  
janio user

or to skip installation phase

npx janio user

This will generate 4 files:

  • ./controllers/user.controller.js
  • ./routes/user.route.js
  • ./services/user.service.js
  • ./models/user.model.js

user.controller.js Will contain route logic and call services if necessary
user.route.js Will contain route definition, hooks and route rôle management
user.service.js Will contain specific logic ex: db access
user.model.js Will contain mongoose model definition

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published