Skip to content

cloudtenlabs/mongodb-express-rest-api-example

This branch is 10 commits behind mongodb-developer/mongodb-express-rest-api-example:main.

Repository files navigation

MongoDB and Express.js REST API sample application

This repository contains the sample application for the MongoDB and Express.js REST API tutorial.

main workflow

How To Run

  1. You can follow the Getting Started with Atlas guide, to learn how to create a free Atlas account, create your first cluster and get your Connection String to the database. Then, set the Atlas URI connection parameter in server/config.env to your Connection String:
ATLAS_URI=mongodb+srv://<username>:<password>@sandbox.jadwj.mongodb.net/myFirstDatabase?retryWrites=true&w=majority
  1. Start the Express server:
cd server
npm install
npm install -g nodemon
nodemon server
  1. Start the React app:
cd app/listings/
npm install
npm start

Disclaimer

Use at your own risk; not a supported MongoDB product

About

Example for the article on MongoDB and Express JS web REST API tutorial

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 60.8%
  • HTML 24.9%
  • CSS 12.7%
  • Shell 1.6%