Skip to content

This is a pre-made framework that can be used to develop reliable RESTful APIs using Node.js, Express, and Mongoose, with the necessary components for deployment to a production environment.

License

Notifications You must be signed in to change notification settings

Akpughe/simple-nodejs-express-boilterplate

Repository files navigation

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
 

About

This is a pre-made framework that can be used to develop reliable RESTful APIs using Node.js, Express, and Mongoose, with the necessary components for deployment to a production environment.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published