An open API service indexing awesome lists of open source software.

https://github.com/rahul2104/create-nodejs-structure

Initialize a node structure with create-node-structure
https://github.com/rahul2104/create-nodejs-structure

express-js mongodb mongoose nodejs redis redis-session socket-io swagger

Last synced: 5 months ago
JSON representation

Initialize a node structure with create-node-structure

Awesome Lists containing this project

README

          

Create Nodejs Structure
=====================

[![NPM Version][npm-image]][npm-url]
[![Node Version][node-image]][node-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![NPM License][npm-license]][npm-url]

Initialize a node structure with create-nodejs-structure.

How To Start
---------------

The simplest way to get started is to use `npx`:

#### npx
```bash
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
```bash
npm init nodejs-structure
```
npm init is available in npm 6+

#### yarn
```bash
yarn create nodejs-structure
```
yarn create is available in Yarn 0.25+

## Steps for creation module for this structure

```bash
cd node_demo/lib/module/v1
```

#### npx
```bash
npx create-nodejs-project-module
```

#### npm
```bash
npm init nodejs-project-module
```

#### yarn
```bash
yarn create nodejs-project-module
```

[npm-image]: https://img.shields.io/npm/v/create-nodejs-structure
[npm-url]: https://www.npmjs.com/package/create-nodejs-structure
[node-image]: https://img.shields.io/node/v/create-nodejs-structure
[node-url]: https://www.npmjs.com/package/create-nodejs-structure
[downloads-image]: https://img.shields.io/npm/dm/create-nodejs-structure.svg
[downloads-url]: https://github.com/rahul2104/demo-node
[npm-license]:https://img.shields.io/npm/l/create-nodejs-structure