When you use this template, make sure that you CHANGE the author name from package.json file and edit this README.md file.
To Use this Starter Template locally, follow these steps:
-
Install NodeJs, MongoDB and MongoDB Compass (optional) on your machine.
-
Clone the project repository:
git clone https://github.com/itsMinar/express-mongodb-starter.git
-
Navigate to the project directory.
cd express-mongodb-starter
-
Remove the git initialization (.git) file (don't use powershell) -
rm -rf .git*
-
Install the packages:
npm install
-
Run the project (Development):
npm run dev
-
Access the APIs at the specified endpoints.
- Create
vercel.json
file in the root folder and copy paste the content given bellow:
{
"version": 2,
"builds": [
{
"src": "src/index.js",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "src/index.js"
}
]
}