Home » Archive

Articles tagged with: Node.js

MongoDB, Node.js »

[29 Aug 2017 | No Comment]

This article shows how you can create a simple CRUD (Create, Read, Update, Delete) application in Node.js using MongoDB as database. We will also be using Express Framework to build this Node.js web application.
Previously, I had written an article on Creating basic CRUD application using Node.js, Express & MySQL database. This article contains creating same kind of application but we will be using MongoDB as database instead of MySQL.

MySQL, Node.js »

[22 Aug 2017 | No Comment]

This article shows how you can create a simple CRUD (Create, Read, Update, Delete) application in Node.js using MySQL as database. We will also be using Express Framework to build this Node.js web application.
We will be using EJS as templating engine.

Node.js »

[15 Aug 2017 | No Comment]

This article shows how you can use routing in Node.js and Express Framework to create a Single Page Application (SPA) or website. Basically, we will be using Routing to include different HTML files.
Express Framework supports different HTTP request methods like GET, POST, PUT, DELETE, etc. Detailed guide on Express Routing is present here.

Node.js »

[8 Aug 2017 | No Comment]

This article show how you can use Embedded Javascript (EJS) in your Node.js & Express application. EJS is an open-source Javascript Template Library.
There are different other Javascript Templating languages/libraries like Mustache, Pug, Jade, etc. which can also be used in your Node.js & Express application. This tutorial uses EJS as the templating language for our Node & Express example app.

Node.js »

[3 Aug 2017 | No Comment]

This article shows how you can use Express Framework for creating Web based Application in Node.js.
Express is a free and open-source Node.js web application framework.

Node.js »

[30 Jul 2017 | No Comment]

This article shows how you can package your Node.js module or project using npm init command. Running this command will create a package.json file which contains all the necessary packaging information.
Here’s a step-by-step guide to create package file with npm init command.

Node.js »

[25 Jul 2017 | No Comment]

This article shows how you can create a basic HTTP routing in Node.js.
In the example code, we will be using two built-in Node.js modules: http module and fs module. To create HTTP server, we need http module. And, to read/write file data, we need to use fs module.
We will create an http server and write if/else conditions to read HTML files according to routing parameter.

Node.js »

[20 Jul 2017 | No Comment]

Node.js is an open-source runtime environment, used to build server-side and networking application using Javascript. Generally, Javascript has been used for client-side scripting. However, with Node.js, you can interact with web-server using Javascript. The APIs of Node.js are asynchronous and event-driven which helps in faster code execution.
Here’s the installation instruction for Node.js.