Before run this example, make sure you have installed and running MongoDB.
Step to run locally:
- Clone this repo
- Run 'npm install'
- Run 'npm start'
Steps to download and install mangodb. If your mac user it will be easy
- brew tap mongodb/brew
- brew install mongodb-community@4.2
Or Download the bin file and extract it on a folder
This will create following 3 files. the configuration file (/usr/local/etc/mongod.conf) the log directory path (/usr/local/var/log/mongodb) the data directory path (/usr/local/var/mongodb)
to start mangodb cd path_to_mangodb/mongodb-macos-x86_64-4.2.3/bin
mongod --dbpath ~/data/db