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
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
Running locally:
nodemon app.js
or
npm start
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