Mongodb Express Rest Api Example Save

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

Project README

MongoDB and Express.js REST API sample application

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

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/.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 run dev
  1. Start the React app (in a new terminal window):
cd app
npm install
npm start

Disclaimer

Use at your own risk; not a supported MongoDB product

Open Source Agenda is not affiliated with "Mongodb Express Rest Api Example" Project. README Source: mongodb-developer/mongodb-express-rest-api-example
Stars
122
Open Issues
3
Last Commit
9 months ago
License

Open Source Agenda Badge

Open Source Agenda Rating