Skip to content

V3RITAS-UTD/m10-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

m10-cli

npm version

Scaffold tool for m10-based projects

Work in progress

Install

npm i -g m10-cli

Options

Create a new boilerplate project

m10-cli new folder-name-here

Will create a new boilerplate with the following folders/files (you don't need to follow this pattern, you can use any files and folder in your configuration file):

  • app.js

     Express and m10 setup
    
  • config.json

     Blank configuration
    
  • schema/

     Empty folder for validation files
    
  • handler/

     Empty folder for handler files
    
  • middleware/

     Empty folder for middleware files
    

Generate CRUD resources for existing project

In the root of your m10 project run:

m10-cli add crud

Follow the prompts and will generate a complete CRUD handlers/validations automatically with MongoDB support.

Add route/validation to existing project

In the root of your m10 project run:

m10-cli add route

Follow the prompts and will generate a new route and validation based on your inputs.

About

Scaffold tool for m10-based projects

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors