Articles in the Node.js Category
Node.js »
This article shows how you can pass command line arguments/parameters to any Node.js programs or .js file.
Here’s an example:
Javascript, Node.js »
This article shows how you can base64 encode and decode string using both Nodejs and Javascript.
Javascript: Base64 encode/decode string
Encode String
MongoDB, Node.js »
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 »
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 »
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 »
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 »
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 »
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 »
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 »
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.
Mukesh Chapagain is a graduate of Kathmandu University (Dhulikhel, Nepal) from where he holds a Masters degree in Computer Engineering. Mukesh is a passionate web developer who has keen interest in open source technologies, programming & blogging.