Skip to content

leungmanfai/mongodb-driver-tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Node.js Example: Counting MongoDB documents

An example of counting the number of documents in the restaurant collection

Getting Started

  1. Change the value of variable url in server.js to the address of your MongoDB Atlas Cluster. Modify the creditentals of your Database User and Database Name.

MongoDB Atlas Connect URL

  1. Change the value of varibale dbname in server.js to your DB name
  2. You need a collection named restaurant in dbname with a few documents in it.

Installing App Dependencies

npm install

Run App (and see results)

npm start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published