Skip to content

A boilerplate for REST API Development with Node.js, Express, and MongoDB using TypesScript

Notifications You must be signed in to change notification settings

iamsirmike/node-mongo-boilerplate

Repository files navigation

node-mongo-boilerplate

A simple boilerplate for NODEJS, EXPRESS and MONGODB REST API development .

Quick Start

  1. Make sure you have node.js v14 + npm v8 or above installed and ts-node installed.

  2. Clone this repo and cd into it using git clone [email protected]:iamsirmike/node-mongo-boilerplate.git && cd node-mongo-boilerplate.

  3. This project requires a MongoDB server. Make sure you have an active MongoDB instance locally (example here) or remote (example here)

  4. Create a file named .env in the base of your folder and add the mongo url from step 3 above like this

.env

MONGO_URL=<url>

Replace <url> with the actual url.

  1. To get the project ready, run npm install.

  2. To run the project:

    • To automatically rerun when you save, run npm run watch
    • To run once, run npm run start
    • To run tests npm run test

Now you are ready to rumble!

About

A boilerplate for REST API Development with Node.js, Express, and MongoDB using TypesScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published