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
- Host: GitHub
- URL: https://github.com/makstyle119/node-mongodb-boiling-plate
- Owner: makstyle119
- License: mit
- Created: 2022-09-20T20:37:08.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-07T22:29:29.000Z (9 months ago)
- Last Synced: 2024-09-07T23:31:27.724Z (9 months ago)
- Language: JavaScript
- Size: 332 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
```