Explore the post »
Report Bug
·
Request Feature
- Express Server configured to accept JSON request
- Security middlewares
- Production standard structuring of the application.
- High SoC (feature based).
For a more detailed explanation of the code, you can refer to my medium post associated with this repository.
Visit blog - How to Create Your Own Secure Node.js REST API Boilerplate.
- Node.js - JavaScript runtime built on Chrome's V8 JavaScript engine.
- Express.js - Minimal and flexible Node.js web application framework
- MongoDB - Cross-platform document-oriented database program
To get a local copy up and running follow these simple steps :
To run this project, you'll need to have the following installed:
-
Node.js : https://nodejs.org
-
npm :
npm install npm@latest -g
-
MongoDB : https://mongodb.com
You can also use MongoDB Atlas if you prefer.
-
Clone the repo :
git clone https://github.com/PraneshASP/node-express-api-starter.git
-
Install dependencies (use
sudoif required) :npm install
-
Create
.envfile and configure :MONGO_URI = <MONGODB_URL>
-
Start the server :
npm start
