MongoDBConnection Here i have established connection with mongoDB on local machine server for development purpose using the new version npm init : to install node modules npm i mongodb : to install mongodb Run mongoDB on cmd => mongd(command)