node-initializr

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i node-initializr

Weekly Downloads

14

Version

1.0.2

License

MIT

Unpacked Size

44.6 kB

Total Files

34

Last publish

Collaborators

  • xplorer1