node-initializr
v1.0.2
Published
Node's application initializer.
Downloads
5
Maintainers
Readme
Installation
$ npm install -g node-initializrQuick Start
node-initializr will generate boilerplate code for popular NodeJs frameworks. At this moment, it supports express and react. Support for other frameworks will come with later versions.
It tries to be opinionated in the way it defines the folder structure and code organisation.
Defaults:
#Framework: express
#Name: hello_world
Create the app.
$ node-initThis will guide you through generating an express app named hello_world in the current working directory and install the dependencies required to get your application started.
Create an express app with given name:
$ node-init food-appCreate an express app with the given name and space delimited list of dependencies.
$ node-init food-app -d morgan dotenv notyCreate an app with a different framework.
$ node-init food-app -f reactStart your Express.js app and visit it at: http://localhost:8000:
$ npm start