Full stack application generator with multi application feature...
Install Yeoman
$ npm install -g yo
Install Expack generator
$ npm install -g generator-expack
First scaffold an app using command below
$ yo expack
$ yo expack:apps web
$ npm install
Launch your app using
$ node bin/serve web
$ yo expack:database
- web - selecting this type will setup a conventional web app (flash, sessions, views).
- api - selecting this will quickly setup application for a resourceful api.
- custom - implement custom app. do the hard work yourself.
- Basically an express app
let app = express()
; - Runs on its own using
node bin/serve <name>
- basically a mini app
let app = express.Router()
; - Cannot run on its own. Requires mounting on a standalone app
- yo expack -> scaffolding
- yo expack:database -> adds database
- yo expack:apps -> adds subapp
- yo expack:handler -> to generate handler & route & validator
- yo expack:destroy -> [for development only] destroys your app. Muahahaha!
- Add generator
expack:auth
scaffold user authentication (passport) - Add generator
expack:model
(generate model)
- Add support for postgres.
- Add support for sqlite.
- Add support for mariadb.
- Add support for mongodb.
- Generate knexfile.js if a relation db is selected.
- develop a migration workflow.
- create base bookshelf model.
- complete api app stub