Scroll to top

node js

Posted by Sandip Salunke
April 19, 2020

Design Multi-threaded Architecture

What is multi-threading? Multithreading is the ability of a program to perform multiple tasks concurrently....

Read More
Posted by JBT
August 8, 2018

Getting Started With Express Part 5

In the last part of this tutorial series, we created two routes to fetch and add books to our bare minimum application. We had already connected MongoDB database in Part 4 by defining a schema and creating a model to connect with the routes. In this part, we are going to work with HTML forms.

Read More
Posted by JBT
July 1, 2018

Getting Started With Expressjs Part 2

In Part 1, Getting Started With Expressjs, we did learn a lot about how Expressjs works as a Node.js framework. We built a simple and generic web server in the previous article that had two routes to function. We then discussed other paradigms such as devDependencies, REST services and the general anatomy of an Express application. In this article, we are going to continue to build upon the previous article, and we will start by generating a boilerplate project that can be used in any scenario, whether creating an application using Express entirely or just building a REST API using it.

Read More
Posted by JBT
June 28, 2018

Getting Started With Express Part 4

In the previous article, we learned how we can leverage ODM like Mongoose to connect a database to our Express server web application and define schema and model inside our web application to interact with the MongoDB database. In this tutorial, we are going to work on the controller part of our web server. We will be defining some routes using BookSchema. Let us get started.

Read More
Posted by JBT
June 24, 2018

Getting Started With Express Part 3

With an Expressjs application, you can make use of all popular databases available to perform several operations such as Create, Read, Update and Delete (CRUD operations). This tutorial will provide you an overview of a database, we are going to use with our Expressjs application, called MongoDB. Further, we will be looking into pragmatic concepts like what is an ODM/ORM, Schemas, Models and connecting the MongoDB database with our Express application.

Other popular options that we could use with Expressjs are PostgreSQL, MySQL, SQLite, Redis, etc.

Read More
Posted by JBT
June 12, 2018

Getting Started With Expressjs

In previous articles, we discussed node js network programming also we discussed how to build a basic web server using Node.js alone. By Node.js alone, I mean using its core API modules such as URL and HTTP. In the second article, we glimpsed briefly on how Node.js works behind the scenes. There is a lot in depth we haven't discussed such as working of libuv and role V8 in depth. I consider those things out of the scope of these articles since our sole focus is to get started in web development and build production level API servers. Using Expressjs, we can do that.

Read More
Posted by Sandip Salunke
June 8, 2018

ChatBox: A Peer to Peer Chat Application.

Introduction

Welcome back JavaScript beginners! I hope you enjoyed my last tutorial to create a simple chat application and find it useful. I got many comments/question regarding the limited features of my previous tutorial. But all of those falls under the advanced level of creating a chat application, and I wanted to keep that as simple as possible for newbies to understand it easily.

Read More
Posted by JBT
June 2, 2018

Event Loop and Asynchronous Non-Blocking in Node.js

Introduction to Node.js Event Loop

In the previous article, we talked about Node js network programming. Here we will take it further and talk about Event loop and asynchronous non blocking in node js. Node.js is single threaded. It supports concurrency through paradigms of event and callbacks. Since it is single threaded, most APIs provided by Node.js core are asynchronous. They follow a non-blocking Input/Output or I/O. What is a non-blocking Input/Output you ask?

Read More
Posted by JBT
May 24, 2018

Node Js Network Programming

Web applications are often written in a server/client model where server is responsible to respond with resources for the client to handle. Node.js is an open source platform that allows you to build fast and scalable server applications using JavaScript. Node.js is a runtime that uses the same V8 Javascript engine you can find in the Google Chrome browser. In this article we will talk about Node js network programming, which utilises another library under the hood called libuv which is a multi-platform support library with a focus on asynchronous I/O.

Read More