A simple command-line tool for Node.js APIs boilerplate, inspirade on Ruby on Rails and Express generator
⚠️ ⚠️ This module is on development mode and it is not ready to be used in real web applications yet⚠️ ⚠️
Download from NPM:
npm install -g nodexpnodexp <command>
Create a new project:
nodexp new awesome-apiInstall the dependencies:
cd awesome-api
npm installRun your app:
npm startVisit localhost:3000
Creates a new project
nodexp new <project-name>e.g
nodexp new awesome-apiGenerate some boilerplate.
usage:
nodexp generate <boilerplate>alias: nodexp g <boilerplate>
See the boilerplate section below to get a list of available generators
All those boilerplates can be generated through nodexp generate command.
nodexp generate model <model-name>
Creates a new model inside the /model directory
nodexp generate model UserYou also can pass some initial properties and their respective types
nodexp g model User name:string age:numberPlease open an issue for support.
- Organize the APP in modules
- Controller/Routes boilerplate generetor
- Model boilerplate generetor
- Add migrations
- Add support to SQL Databases
- Add default authentication (Like Meteor.js)
- Add pattern/support to call external Hooks
- Add pattern/support to call external Services
