Skip to content

rahul2104/create-nodejs-structure

Repository files navigation

Create Nodejs Structure

NPM Version Node Version NPM Downloads NPM License

Initialize a node structure with create-nodejs-structure.

How To Start

The simplest way to get started is to use npx:

npx

npx create-nodejs-structure node_demo
cd node_demo
cp env.example .env
mkdir uploads
npm start

npx comes with npm 5.2+ and higher, see instructions for older npm versions

npm

npm init nodejs-structure <project name>

npm init is available in npm 6+

yarn

yarn create nodejs-structure <project name>

yarn create is available in Yarn 0.25+

cd node_demo/lib/module/v1

npx

npx create-nodejs-project-module <module name>

npm

npm init nodejs-project-module <module name>

yarn

yarn create nodejs-project-module <module name>