A Starter Node.js API skeleton with MongoDB.
- First, click on the "Use this template" button.
- Install all npm packages with the command:
$ npm install
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.
$ npm run dev
This app uses Mongoose to interact with your Mongo database.
You can deploy with Vercel: see more and check vercel.json
file.
👇 Clone and Deploy now HERE by clicking here
Current licence is MIT
.
You are free to modify and improve this git project.