Skip to content

About

Spin up an Express server within minutes and build robust APIs using this starter template (or boilerplate).

Resources

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Product Name Screen Shot

                         language vulnerability repo size node version npm version

Starter template for building Express API

Explore the post »

Report Bug · Request Feature

What's inside this repo?

  • 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.

Built With

  • 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

Getting Started

To get a local copy up and running follow these simple steps :

Prerequisites

To run this project, you'll need to have the following installed:

You can also use MongoDB Atlas if you prefer.

Installation

  1. Clone the repo :

    git clone https://github.com/PraneshASP/node-express-api-starter.git
  2. Install dependencies (use sudo if required) :

    npm install
  3. Create .env file and configure :

    MONGO_URI = <MONGODB_URL>
  4. Start the server :

    npm start

About

Spin up an Express server within minutes and build robust APIs using this starter template (or boilerplate).

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages