This is mongodb search demo with socket.io and node js.
- Clone the repo.
- Make sure mongodb is running.
- Edit the app.js file and change:
3.1 MONGO_DB to mongoDB name
3.2 MONGO_COLLECTION to mongoDB collection in which we want to search
3.3
title
in find command to key/field of document you want to search. eg. I want to search my document fortitle
field (String). - run
npm install
- run
node app.js
- Now it should be working on http://localhost:3000