Sunday , 17 December 2017
Home / Tag Archives: how to

Tag Archives: how to

MongoDB – Node.js Tutorial for Beginners

MongoDB

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

Views

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 – Node.js Tutorial for Beginners

Creating a Hapi Server

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-5a36940358988575877945/] We’re doing a couple of things …

Read More »

Installing Hapi.js – Node.js Tutorial For Beginners

Installing Hapi.js

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 – Node.js Tutorial for Beginners

Web Frameworks

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 – Node.js Tutorial For Beginners

Creating Blog Posts

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-5a36940359d77164030544/] First, we want to determine if the request is a POST or GET request. In HTTP, there are 2 …

Read More »

Displaying Blog Posts – Node.js Tutorial for Beginners

Display Blog Posts

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

Asynchronous

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 – Node.js Tutorial for Beginners

Create a HTTP Web Server

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 – Node.js Tutorial For Beginners

Executing JavaScript FIles

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 »
ULTIMATE WORDPRESS DEVELOPMENT COURSE
Want to learn how to create your own custom WordPress plugins and themes? Check out my course!
Get 93% off my course. You'll also learn how to integrate WooCommerce and BuddyPress into your projects. This is a limited time offer
Yes, I would like to get 93% off your course!
No Thanks!
close-link