Connect with us

Gamer4K

Create a CRUD app with Node.js + MongoDB (Part 3)

Tech

Create a CRUD app with Node.js + MongoDB (Part 3)


Node.js is a JavaScript interpreter that works on the server side. This platform allows programmers to develop network applications in real time and high scalability in a simple and fast. Node.js is based on Google's V8 interpreter.

After part 1 and part 2 today we will teach how to create the database to connect to the project.

MongoDB Database on mLab

For the Support Database for our project we will use mongoDB, using the mLab service. MongoDB is a new paradigm regarding the concepts of traditional databases, since this DBMS (being a NoSQL database) stores all the important information in a single document, free of schemas where it also has unique identifiers, allowing the consultation of the documents through advanced methods of grouping and filtering allowing with this redundancy and consistency.

MLab is a Database-as-a-Service which currently has more than half a million databases. With this service you can store up to 500 MB of data, free of charge.

Create a CRUD app with Node.js + MongoDB (Part 3)

Create Database

To start you must create an account on here. Then create a Database by clicking on Create New

Then enter the Cloud Provider and Plan type and click Continue.

Create a CRUD app with Node.js + MongoDB (Part 3)

Choose which Google DataCenter you want to keep your data in. To continue, click Continue.

Create a CRUD app with Node.js + MongoDB (Part 3)

Enter a name for your MongoDB Database now

Create a CRUD app with Node.js + MongoDB (Part 3)

You are then prompted to confirm the plan you indicated and, if everything is set correctly, the Database you have defined will be created.

Create a CRUD app with Node.js + MongoDB (Part 3)

Create Users

The next step is to create a user to access the Database. To do this enter the created database and then choose Add database user.

Create a CRUD app with Node.js + MongoDB (Part 3)

Now fill out the requested data to create a user.

Create a CRUD app with Node.js + MongoDB (Part 3)

And everything is at the level of database creation. In a next tutorial we will teach you how to link our project to the database we have now created.

Read too…

!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version=’2.0′;n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,’script’,’https://connect.facebook.net/en_US/fbevents.js’);
fbq(‘init’, ‘1664527397186427’); // Insert your pixel ID here.
fbq(‘track’, ‘PageView’);
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = “http://connect.facebook.net/pt_PT/sdk.js#xfbml=1&version=v2.3&appId=122308327859118”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));

Comments
To Top
close

Log in

Forgot password?

Forgot password?

Enter your account data and we will send you a link to reset your password.

Your password reset link appears to be invalid or expired.

Log in

Privacy Policy