React is a one of the most popular javascript library for building user interfaces.React developed by facebook and maintained by facebook and individual developers.It is used for handling view layer of web and mobile apps.It encourages the creation of reusable UI components.People use react as V in MVC architecture.React provides the simpler programming model with good performance by separate us from DOM.
Now a days all web based application has some database to store the data at the back end. Nodejs frame work have the ability to work with both relational and non relational database. Node.js MongoDB NoSQL database mongodb quite fame because of its ability to store the any sort of data at any format.In order work we have to download required module.Mongodb required the module to be installed is mongoose.And also with these modules we can perform many operations.Before that we have to get start mongodb in nodejs. 1.Install MongoDB Driver * We can download from official mongodb driver or open in terminal and execute it npm install mongodb * Node.js used this module to manipulate mongodb database. var mongo = require( 'mongodb' ); 2.Node.js MongoDB Create Database To create a database: 1.Create the Mongoclient object 2.Specify the url connection (correct ip address and name of the database want...
Comments
Post a Comment