Skip to content

chidimo/Express-API-Template-With-MongoDB

Repository files navigation

Express API Template With MongoDB

Create express API backend with MongoDB

Build Status Build status Coverage Status Maintainability Test Coverage

How to use this template

  1. Clone the template

  2. Create a .env file and define the following environment variables

    1. CONNECTION_STRING (required): This is the connection string to a MongoDB database.
    2. PORT (optional): The port to serve the app from.
  3. start the dev server with yarn startdev.

  4. Start the production server with yarn start. The command outputs a production build, then serves it.

How to test

  1. Run the command yarn test

About

Create express API backend with MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published