Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.31 KB

File metadata and controls

52 lines (37 loc) · 1.31 KB

RESTful API Node Server Boilerplate

A boilerplate/starter project for quickly building RESTful APIs using Node.js, Express, and Mongoose.

By running a single command, you will get a production-ready Node.js app installed and fully configured on your machine. The app comes with many built-in features, such as authentication using JWT, request validation, email verfication, etc

Manual Installation

If you would still prefer to do the installation manually, follow these steps:

Clone the repo:

git clone https://github.com/Akpughe/simple-nodejs-express-boilterplate.git
cd simple-nodejs-express-boilterplate

Install the dependencies:

npm install

Commands

Running locally:

nodemon app.js 

or

npm start

Project Structure

src\
 |--config\         # Environment variables and configuration related things
 |--controllers\    # Route controllers (controller layer)
 |--data\           # Data repository
 |--middlewares\    # Custom express middlewares
 |--models\         # Mongoose models (data layer)
 |--routes\         # Routes
 |--services\       # Business logic (service layer)
 |--utils\          # Utility classes and functions
 |--app.route.js    # Parent route file
 |--app.js          # Express app