Skip to content

jasperdifran/MongoDBWorkshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB Workshop

Purpose

This is a simple backend built using Node.js and Express.js. Purpose is to teach the method of connecting MongoDB to a backend.

Setup

  1. Clone repo
  2. Create MongoDB account and database cluster
  3. Get connection string which should look like mongodb+srv://[USERNAME]:[PASSWORD]@cluster0.plteu.mongodb.net/[DATABASE_NAME]?retryWrites=true&w=majority
  4. Put it into a .env file with format MONGODB_CONNECT= connection string
  5. Run npm install
  6. Run npm start
  7. Use a REST client to make requests to localhost:9000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published