Skip to content

Latest commit

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Cursor-Stream-Sample-Code

MongoDB cursor to query, iterate and update the document using Nodejs stream to overcome the MongoError: Connection Closed By Application or MongoError: server localhost:27017 sockets closed.

To run the application you need to install MongoDB, Nodejs and mongodb driver.

Install MongoDB

To install and test MongoDB following the link: http://www.acemyskills.com/install-configure-and-start-mongodb-in-windows/

Install NodeJS

Follow the following steips to install the Nodejs

  1. Go to the https://nodejs.org/download/ and download the Nodejs file
  2. Install the downloaded file
  3. Set up the environment variables for Nodejs.

Test whether Nodejs is isntalled successfully by type the node --version

node --version

If it prints something like v0.10.38, node is installed successfully.

Install mongodb driver for Nodejs to connect Nodejs to MongoDB.

There is a package.json which holds all the dependendencies. Type the below command to install the mongodb driver dependency.

npm install

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages