Showing entries 1 to 10 of 84
10 Older Entries »
Displaying posts with tag: tutorial (reset)
Advanced WordPress Search using WpSolr and ElasticSearch

Finding good content on your website is really important. The search feature improves user interaction and helps you to build a readership on your website. WordPress uses the default MySQL database to perform a search which is not great. MySQL is not built for search and if you are serious about building an authority website on WordPress then the search is the module you need to pay good attention.

I have already implemented WordPress search with ElasticSearch here. In this article, I am going to use and review the amazing product called ‘WPSOLR’ built for search.

What is WPSOLR

WpSolr is an advanced WordPress search plugin that can work with Apache Solr and Elasticsearch.

WPSOLR provides out of the box search solution with the following features:

  • Built-in language, synonyms, stop words.
  • Search filter using checkbox, radio box, …
[Read more]
S.O.L.I.D the First 5 Principles of Object Oriented Design with JavaScript

S.O.L.I.D Stands for first five object-oriented design principle by Robert C.Martin.

SOLID principles can be used to design and develop extensible and easy to maintain software. By using these principles in object-oriented programming developer can create and maintain the codebase very easily.

SOLID stands for:

  • Single-responsibility principle
  • Open-closed principle
  • Liskov substitution principle
  • Interface segregation principle
  • Dependency Inversion Principle

In this article, we will learn about the principle with the codebase.

Single-responsibility principle

A class should have only one job.

This principle states and recommends that a class should have only one responsibility. If a class contains multiple responsibilities then it becomes coupled. …

[Read more]
Facebook Login Implementation Using Nodejs and Express

Facebook Login is widely used as an authentication module on websites. Instead of asking user manual details such as email and password and then verify them, it’s better to use already verified user details.

In this article, we are going to learn and implement a Facebook Login System using Nodejs and ExpressJS. You can download the code by clicking the button below.


If you are new to Node and Express then you won’t regret taking our Node course. It’s FREE!

Creating Facebook App:

Very first thing you going to need is AppID and AppSecret from Facebook App. Please go to Facebook Developers and create your …

[Read more]
15 Best Visual Studio Code Extensions For Web Development

Visual studio code, arguably the best code editor to use in present time. Due to its wide range of extensions and support from Microsoft this editor is widely adopted.

Visual studio code is built on top of open source Monaco editor by Microsoft. This project receives around 14k stars in Github.

Visual studio code offers a wide range of extensions. Here is how to install the extension.

Press SHIFT+COMMAND (or Windows)+X or just click on the extension icon of visual studio code. Search for the extension and press install.

Here I am listing down 15 best visual studio code extension for web development. The choices of the …

[Read more]
Hosting Nodejs App on Platform


In this article, we are going to cover the development and deployment of the Nodejs App on the platform. is the Cloud VPS service that offers affordable, SSD based virtual private servers to host your application.

Why Clouding Platform has affordable virtual private servers with very fast processors, wide bandwidth and SSD for fast processing. aims to be the most efficient virtual private servers provider with cutting edge technology.

Some of the eye-catching features are:

  • Affordable price range:

You can start using for around 3 Euros ( 3.8 USD ) a month that will give you 1 GB of RAM and 5 GB SSD disk storage.

[Read more]
Ajax file upload in Node.js

We all love Ajax, don’t we? And there is an obvious reason. Ajax is great for user experience. In this tutorial, I am going to build an application using Node.js that will let the user upload files using Ajax instead of conventional upload that requires a browser refresh action to see the change.

Recommended read : File uploads using node.js Our application :

I am going to develop the same application as I have done in the last tutorial with some additional code changes which make it asynchronous or Ajax.

#1 : Handling global …

[Read more]
Session Management in Nodejs Using Redis as Session Store

We have covered session management in ExpressJs using global variable technique which of course will not work in case of shared server or concurrent execution of http requests which is most familiar production scenario.

Codeforgeek readers requested to provide solution for these issue and the optimal one is to use external session storage which is not dependent on application requests, answer is Redis cause this is the light weight and easy to use NoSQL database.

In this tutorial i am going to explain how to design and code session oriented express web applications by using Redis as external session storage.


To get familiar with Session handling in ExpressJS I recommend to read our first article …

[Read more]
Node.js MySQL Tutorial

Node.js and MySQL is one of the necessary binding needed for any web application. MySQL is one of the most popular open source database in world and efficient as well. Almost every popular programming language like Java or PHP provides driver to access and perform operations with MySQL.

In this tutorial i am trying to cover code for learning and code for production. So if you know this already and looking for ready made code for production. Click here to jump there directly.


Node.js is rich with number of popular packages registered at package registry called …

[Read more]
How to Manage Session using Node.js and Express

Session handling in any web application is very important and is a must-have feature, without it, we won’t be able to track user and it’s activity.

In this article, I am going to teach you how to handle Session in Node.js. We will use express as a framework and various other modules such as body-parser to handle form data.


At the time of writing article, the latest version of Express is 4.16.4.

What we are buiding

To demonstrate Session handling in Node, I have developed a basic Log-in and log-out System. In this User can log-in by providing their email, and that email will be used for further Session tracking. Once User log-out, Session will be destroyed and User will be redirected to home page.

Creating Node …

[Read more]
Continuous Integration and deployment (CI/CD Pipeline) with Jenkins and Node.js

Write code, test and deploy

This is one of the common development cycles of any developer.

Most of the time testing and deployment steps do not change frequently and in order to keep the developer focus on writing code, we do the automation of testing and deployment.

This automation is called “continuous integration and deployment” OR CI/CD Pipeline.

In this tutorial, we will learn how to set up continuous integration and deployment (CI/CD) infrastructure for the Node.js project.


I am going to use Jenkins as the automation tool and Github as source code management system.

Jenkins is free for use but we require public server in order to integrate the Github repository.

For the server, I will be using $5 droplet on Digitalocean. In case you wish to buy it, you …

[Read more]
Showing entries 1 to 10 of 84
10 Older Entries »