justo-generator-express
v0.5.1
Published
Generator for Express applications.
Downloads
21
Maintainers
Readme
Generator for Express applications.
Proudly made with ♥ in Valencia, Spain, EU.
Features:
- Allow to configure several middlewares:
Helmet,Morgan,serve-static,serve-favicon,bodyParser,express-session... - Allow to add new router files to the
app/routesdirectory. - Allow to add new routes to a router files.
- Allow to add new Handlebars views.
- Allow to add new Handlebars partials.
Note. You can learn Express and this generator, in Spanish, on nodemy.com.
Install
npm install -g justo-cli justo-generator-expressCreating a project scaffolding
justo -g expressAdding routers
To add a router file to the app/routes directory:
justo -g express routerAdding routes
To add a route to a router file:
justo -g express routeAdding Handlebars views/templates
To add a Handlebars view/template to the app/views directory:
justo -g express hbs viewAdding Handlebars partials
To add a Handlebars partial to the app/views/partials directory:
justo -g express hbs partial