Author Archives: thajegan76

Introduction to Angular 7

What is Angular 7

Angular is a Javascript framework to build more interactive web apps. It is designed for both web, Desktop and Mobile platforms. While, we create apps using HTML, CSS and Javascript, Angular requires us to know Typescript (a typed superset of Javascript that scales), kind of stricter version of Javascript provided with OOPS features. Although, other alternative could be Dart, typescript is the most widely used language for Angular apps.

Angular JS or Angular 1 was released by Google early in 2010. It was used for building client-side web apps. Initially different versions of it were created to add extra feature sets. However, Google has completely rewritten the framework to meet the new needs of web apps and released what is called the Angular or Angular 2 in 2016. In fact Angular 2 itself is written in Typescript.

Later, angular 4 and then Angular 5 are released with some more features, developer productivity and small payload size.

Introduction to Node.js

What is Node.js

  1. Node.js is an open source server environment
  2. Node.js is free
  3. Node.js runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)
  4. Node.js uses JavaScript on the server

Why Node.js

Node.js uses asynchronous programming!

A common task for a web server can be to open a file on the server and return the content to the client.

Here is how PHP or ASP handles a file request:

  1. Sends the task to the computer’s file system.
  2. Waits while the file system opens and reads the file.
  3. Returns the content to the client.
  4. Ready to handle the next request.

Here is how Node.js handles a file request:

  1. Sends the task to the computer’s file system.
  2. Ready to handle the next request.
  3. When the file system has opened and read the file, the server returns the content to the client.

Node.js eliminates the waiting, and simply continues with the next request.

Node.js runs single-threaded, non-blocking, asynchronously programming, which is very memory efficient.

What Node.js can do

  1. Node.js can generate dynamic page content
  2. Node.js can create, open, read, write, delete, and close files on the server
  3. Node.js can collect form data
  4. Node.js can add, delete, modify data in your database