Tuesday , 16 January 2018

MongoDB – Node.js Tutorial for Beginners

In this tutorial, we’ll be talking about MongoDB and how we can use it to store our data. MongoDB will provide us with a simple CRUD (Create, Retrieve, Update, Delete) API. Using MongoDB Node.js and MongoDB are 2 completely different things. MongoDB is a database. So, it isn’t installed with Node.js. Node.js also doesn’t support MongoDB out of the box. Luckily, …

Read More »

Views – Node.js Tutorial for Beginners

In this tutorial we’ll be talking about views. By the end of this tutorial, you’ll be able to separate code logic and design easily. I’ll also be introducing a template engine called Handlebars. Handlebars We need to install handlebars before we can use it. What is handlebars? Well, it’s a template engine. Handlebars is beyond the scope of this tutorial …

Read More »
Creating a Hapi Server

Creating a Hapi Server – Node.js Tutorial for Beginners

In this tutorial, we’ll learn about creating a hapi server. We’ll also learn about routing in Hapi and how simple it is to set up a server in seconds. Creating A Server Let’s just get right to it. If you haven’t already, clear out your index.js file and add this bit of code. [crayon-5a5ddeb517cc1541666194/] We’re doing a couple of things …

Read More »
Installing Hapi.js

Installing Hapi.js – Node.js Tutorial For Beginners

Let’s get started building our new web application. We’re going to be creating a web blog again, but with more features. For this tutorial, we’ll learn a little more about modules and installing Hapi.js. NPM Earlier in this series, we talked about modules. Modules are just JavaScript files with some code that can do perform  tasks like read files, connect to a …

Read More »
Web Frameworks

Web Frameworks – Node.js Tutorial for Beginners

Before we begin, let’s talk a little about web frameworks. There are a lot of web frameworks out there. Each framework has some pro and cons. Right now, there is no “best” framework as every framework has it’s own purpose. Express Currently, the most popular framework is express. Express has been around since the beginning. So, it has a huge …

Read More »
Creating Blog Posts

Creating Blog Posts – Node.js Tutorial For Beginners

In this tutorial, we’re going to finish up our simple web blog application by creating blog posts dynamically. We’ll learn how to handle form data and redirect users. Creating the Form Let’s update our create route with the following code. [crayon-5a5ddeb518d39282175128/] First, we want to determine if the request is a POST or GET request. In HTTP, there are 2 …

Read More »
Display Blog Posts

Displaying Blog Posts – Node.js Tutorial for Beginners

In this tutorial, we’ll be displaying blog posts to our visitors. To do this, we first create a variable that will store our blog posts. Then, we’ll display these blog posts  to our visitors. In a practical application you would use a database to store and retrieve our blog posts. In a future tutorial, we’ll take a look at some …

Read More »

Asynchronous – Node.js Tutorial for Beginners

Before we continue onto our blog web site. I would like to talk about asynchronous programming. You’ve probably heard this term before. You’ve probably heard of it’s opposite term which is synchronous programming. These 2 concepts are very important to understand before you go further into Node.js development. Asynchronous Let’s take a look at some JQuery code to see an …

Read More »
Create a HTTP Web Server

Create a HTTP Web Server – Node.js Tutorial for Beginners

Like I promised, we’ll be creating a VERY simple web blog. Trying to build a fully built web application in Node.js is pretty difficult. So, we’ll be building a simple web app and then learn how to utilize frameworks to help make the process a whole lot smoother. So bare with me here. If things seem hard, then I promise it’ll …

Read More »
Executing JavaScript FIles

Executing JavaScript files – Node.js Tutorial For Beginners

We won’t be using the console anymore, but we’re going to to start using the command prompt now. Don’t be afraid! If you know nothing about the command prompt, then I’ll introduce you to some of the things we’ll need to actually use it. By the end of this tutorial, you’ll learn a few things about the command prompt and …

Read More »
Installing Node.js

Installing Node.js – Node.js Tutorial for beginners

Before we get started, let’s install Node.js. Installing Node.js isn’t very hard actually. You can install Node.js on Windows, Mac and Linux. As of this tutorial, we’ll be installing v0.10.29. However, you can install any version above 0.10. Installing Node.js You can download the installers here! Once you download the installer, then you can just run the installer and install …

Read More »

Conclusion – Advanced JavaScript Tutorial

This tutorial series has covered A LOT of topics. JavaScript is a powerful language. It doesn’t take much time to learn, but years to master. There are a couple of things that you’ll need to learn, but these are things beyond the scope of this tutorial. If you’re wondering where to go next, then you should check out a couple …

Read More »
Request Types

Request Types – Advanced JavaScript Tutorial

Request types only matter when you need to send data along with your request. HTTP headers are meant to store information about the request and the response like the referrer or date it was sent. If you need to send custom data like names, addresses, or just a really long message, then you use form data. Let’s take a look …

Read More »

HTTP Headers – Advanced JavaScript Tutorial

HTTP headers are just pieces of information of the request and response. Browsers will automatically send this kind of information by default. Sometimes you’ll want to modify these HTTP headers so you can let servers know what to expect. Servers also send you back HTTP headers which allow you to know more information about the response itself. Sending Custom Headers …

Read More »

AJAX – Advanced JavaScript Tutorial

AJAX stands for Asynchronous JavaScript XML. This can be a bit misleading as you can make AJAX calls be synchronous.  This tutorial requires that you upload and use your files on a live or local server. What is AJAX? Traditional websites would load a different page every time you needed to make a request to a different page or file. …

Read More »
Want to learn how to create web applications with Node.js and SQL? Check out my course!
Get 93% off my course. You'll also learn how to build real world applications using Node and SQL. This is a limited time offer
Yes, I would like to get 93% off your course!
No Thanks!