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

https://github.com/makstyle119/node-mongodb-boiling-plate

Boiling Plate Of Node JS and MongoDB. ready to use
https://github.com/makstyle119/node-mongodb-boiling-plate

Last synced: 5 months ago
JSON representation

Boiling Plate Of Node JS and MongoDB. ready to use

Awesome Lists containing this project

README

        

# **Node-MongoDB-Boiling-Plate**

clone **locally**

```
git clone https://github.com/makstyle119/Node-MongoDB-Boiling-Plate.git
```

To **start** Working on this template first you have you run the **command** to install all the require packages

```
npm install
```

after thats you have you create a **.env** file.

```
touch .env
```

and Put this code inside of the file( replace the dummy lines with actual code).

```
PORT=5000
API_URL='/api/v1'
NODE_ENV='Development'
SECRET_KEY='Your Secret Key'
MONGO_URI='Your MongoDB URL'
```

To **start** the application

```
// for node
npm start
// for nodemon
npm run dev
```

**folder Structure**

```
└── config
└── index.js
└── Constant
└── index.js
└── Controllers
└── User.js
└── Database
└── MongoDB.js
└── log
└── index.js
└── models
└── user.js
└── routes
└── index.js
└── app.js
└── .env (that you have to create)
```