1.0.2 • Published 22 days ago

node-initializr v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
22 days ago

NodeJs Logo

Installation

$ npm install -g node-initializr

Quick 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-init

This 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-app

Create an express app with the given name and space delimited list of dependencies.

$ node-init food-app -d morgan dotenv noty

Create an app with a different framework.

$ node-init food-app -f react

Start your Express.js app and visit it at: http://localhost:8000:

$ npm start

License

MIT