Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/itsminar/express-mongodb-starter

Boost your Backend Development with this streamlined Boilerplate, crafted for rapid API creation using Express.js and Mongoose, seamlessly working with MongoDB.
https://github.com/itsminar/express-mongodb-starter

expressjs javascript mongodb mongoose nodejs

Last synced: 21 days ago
JSON representation

Boost your Backend Development with this streamlined Boilerplate, crafted for rapid API creation using Express.js and Mongoose, seamlessly working with MongoDB.

Awesome Lists containing this project

README

        

# Expressjs + MongoDB

## When you use this template, make sure that you CHANGE the author name from package.json file and edit this README.md file.

### 💻 Environment setup for Running Locally

To Use this Starter Template locally, follow these steps:

1. Install [NodeJs](https://www.nodejs.org/), [MongoDB](https://www.mongodb.com) and [MongoDB Compass (optional)](https://www.mongodb.com/products/compass) on your machine.

2. Clone the project repository:

```bash
git clone https://github.com/itsMinar/express-mongodb-starter.git
```

3. Navigate to the project directory.

```bash
cd express-mongodb-starter
```

4. Remove the git initialization (.git) file (don't use powershell) -

```sh
rm -rf .git*
```

5. #### Create `.env` file in the root folder and copy paste the content of `.env.sample`, and add necessary credentials.
6. Install the packages:

```bash
npm install
```

7. Run the project (Development):

```bash
npm run dev
```

8. Access the APIs at the specified endpoints.

## 💻 Deploy on Vercel for Free

### To Deploy this app for free on Vercel, follow these steps:

1. Create `vercel.json` file in the root folder and copy paste the content given bellow:

```bash
{
"version": 2,
"builds": [
{
"src": "src/index.js",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "src/index.js"
}
]
}
```