Skip to content

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

Notifications You must be signed in to change notification settings

itsMinar/express-mongodb-starter

Repository files navigation

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, MongoDB and MongoDB Compass (optional) on your machine.

  2. Clone the project repository:

    git clone https://github.com/itsMinar/express-mongodb-starter.git
  3. Navigate to the project directory.

    cd express-mongodb-starter
  4. Remove the git initialization (.git) file (don't use powershell) -

    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:

    npm install
  7. Run the project (Development):

    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:
{
  "version": 2,
  "builds": [
    {
      "src": "src/index.js",
      "use": "@vercel/node"
    }
  ],
  "routes": [
    {
      "src": "/(.*)",
      "dest": "src/index.js"
    }
  ]
}

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published