Skip to content
Public template

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

mongodb-node-api

A Starter Node.js API skeleton with MongoDB.

Setup

Installation

  1. First, click on the "Use this template" button.
  2. Install all npm packages with the command:
$ npm install

Environment

You can type command:

$ cp .env.example .env

or manually create a .env file to the project root and copy/paste this default variables:

PORT=3000
MONGODB_NAME=test
MONGODB_URI="mongodb://localhost:27017/"

Note

To fill MONGODB_NAME (database name) and MONGODB_URI variables, please refer to your MongoDB account.

Testing and development

$ npm run dev

MongoDB

This app uses Mongoose to interact with your Mongo database.

Deployment

You can deploy with Vercel: see more and check vercel.json file.

👇 Clone and Deploy now HERE by clicking here

Deploy with Vercel

Licence and contributing

Current licence is MIT.

You are free to modify and improve this git project.

Releases

Packages

Used by

Contributors

Languages