Skip to main content

Posts

Showing posts from May, 2020

Node.js is Dead – Long live Deno- deno vs node

Node.js is Dead – Long live Deno Deno is a new runtime for JavaScript and TypeScript, invented by Ryan Dahl - the original author/creator of Node.js. The persistence of this project to fix design problems in Node.js described in Dahl's famous talk "10 Things I Regret About Node.js".  Here I am providing depth differences between Node.js and Deno.  Differences between Node.js and Deno Deno Node.Js Deno does not use npm It uses modules referenced as URLs or file paths Use npm Deno does not use package.json Node use package.json for dependency and module management All async actions in Deno return a promise  The async_hooks module provides an API to track asynchronous resources. Deno requires explicit permissions for the file, network, and environment access Node.js does not required any explicit permissions to access network files. It has all default permissions. Deno always dies on uncaught errors...

Angular 9 with Docker Step by Step example

Angular 9 with Docker Step by Step example   I had the plan to learn docker and use an angular app running under the docker environment. I was struggling to get the right and simple steps to start with. So I invested almost 2 days to learn basic docker and working with angular 9 and finally I was able to make it. Congrats to me!! 😊 Setting up the local environment and workspace Prerequisites : Following resource are required to run/complete this demo Visual Studio Code: Download from here https://www.docker.com/products/docker-desktop Docker Desktop: Download from here https://code.visualstudio.com/download (if you are using window so Window 10 Professional is required) Node.Js: Download from here https://nodejs.org/en/download/ Angular Project Setup : After installing the above tools open you CMD/Angular CLI  installed Angular: If you are new to an angular good visit here learn and step   https://angular.io/guide/setup-local .  Step 1: Ins...