Your Choice JavaScript News

Node News Tuesday, May 1 , , & more…


What’s new?

  • In this first part, we’ll focus on building a simple microservice and packaging it in a docker container, we’ll also step through hosting the container on AWS.
  • Packaging a NodeJS microservice inside of a Docker container is straightforward.
  • We also name the service using the flag – that’s useful otherwise docker will provide a random name for our running container.
  • So to push the hello-service container to my docker account I simply use: – – To pull (download) a container image from my docker hub repo I use this command: – – If you refer back to our sample microservice’s config.json file you’ll realize that it got packaged in our…
  • That happened because of this line in our Dockerfile which instructs docker to copy all the files in the current directory into the folder inside of the docker container.

Tags: node js, node.js, whatwg url parser,


  • In other words, Node handles a high number of non-expensive tasks well but gets blocked by expensive tasks.In this tutorial, we will run the same expensive task inside a main and a forked process.
  • When a user clicks either button, the following happens: – The client sends a GET request to the servers API endpoint.An Express route handles this request and calls a method that executes an expensive task.This expensive computational task runs either inside the main process or inside the forked process.Set up…
  • When a user clicks on the grey button that says Execute task in main Node process, the app calls the mainProcessButton function that, in turn, calls and waits for the sendRequestToMainProcess method.
  • When a user clicks on the grey button that says Execute task in forked Node process, the app calls the forkedProcessButton function that, in turn, calls and waits for the sendRequestToForkedProcess method.
  • After that, the main process kills the forked process with (sum) = { res.json(sum); forked.kill();});Check Node docs that describe how the subprocess.kill() method works.

Tags: node js, node.js, whatwg url parser,



  • After mulling over this particular issue for another few days, this question actually encapsulates multiple problems which may or may not be orthogonal to each other depending on one’s given point of view, given some of the following (the list is not exhaustive) – – For a single language, single…
  • The first question hasn’t really been mentioned yet, and I am going to make this fun by asking it in this manner: given a package from npm that requires a Python package, how does one specify a dependency on PyPI?
  • Doing it this way also mean that Node.js package dependants may have a way to figure out the required Python dependencies that have been declared by their Node.js dependencies, but note that without something else on top of it (or some other ground/line), there is no way to assert from…
  • Naturally, coming back to Python, this question has been asked before (but not necessarily in a useful way specifically to you as the contexts are all different): – – Anyway, calmjs only solves problem 1 – i.e. let developers have the ability to figure out the Node.js packages they need…
  • From within Python dependency management point of view, there is no way to guarantee that the required external tools are available until their usage are attempted (it will either work or not work, and likewise from Node.js as explained earlier, and thank you for your question on the issue tracker,…

Tags: node js, node.js, whatwg url parser,


  • The advanced new release of Node.js has a plenty of exciting features that every developer are looking forward to testing.
  • This new improving feature has created the best workflow for Node.js developers by highlighting the major updates and improvements which include Node.js API for the native module, JS binding, Async hooks, zero filling Buffers as well as utility promisify etc.
  • The new advanced version of WHATWG URL parser added to Node.js 8 as an URL API which matches the URL implementation and API with the latest Web Browsers like Chrome, Firefox, as well as Safari.
  • Node.js API (N-API): Native Modular Ecosystem – – – The new node js 8 API comes with advanced enhancement of native addons for node js developer over existing native abstractions for node.js(nan).
  • It offers easier upgrades to new node js versions as well as less install time dependencies on compilers as a long term benefit for developers.

Tags: node js, node.js, whatwg url parser,


Top Node Courses

The Complete Node.js Developer Course (2nd Edition) (60,232 students enrolled)

By Andrew Mead
  • Build, test, and launch Node apps
  • Create Express web servers and APIs
  • Store data with Mongoose and MongoDB
  • Use cutting-edge ES6/ES7 JavaScript
  • Deploy your Node apps to production
  • Create real-time web apps with SocketIO

Learn more.


Angular (Angular 2+) & NodeJS - The MEAN Stack Guide (26,806 students enrolled)

By Maximilian Schwarzmüller
  • Build real Angular + NodeJS applications
  • Understand how Angular works and how it interacts with Backends
  • Connect any Angular Frontend with a NodeJS Backend
  • Use MongoDB with Mongoose to interact with Data on the Backend
  • Use ExpressJS as a NodeJS Framework
  • Provide a great user experience by using Optimistic Updating on the Frontend
  • Improve any Angular (+ NodeJS) application by adding Error Handling

Learn more.