Sunday , 20 August 2017
Home / Tag Archives: modules

Tag Archives: modules

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-5999729783078518170941/] 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 »

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-5999729783eb0764173632/] 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 »

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 »
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