From the course: JavaScript: Progressive Web Applications

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Installing Mozilla's Web Push library

Installing Mozilla's Web Push library - JavaScript Tutorial

From the course: JavaScript: Progressive Web Applications

Start my 1-month free trial

Installing Mozilla's Web Push library

- [Instructor] Since this is a plain Vanilla JavaScript course, I'm going to use Mozilla's web push library for Node. It is well-maintained, updated frequently, and easy to use. It also has the benefit of using JavaScript as the programming language. Information on the web push library is available on GitHub. In order to use the library, you'll need to install Node. Node is a JavaScript runtime built on Google's V8 JavaScript engine. Essentially Node allows you to run JavaScript in a terminal window instead of a browser. This upgrades JavaScript to be a full-fledged programming language, no longer dependent on the browser. Node includes NPM, the Node Package Manager, which allows you to install Node modules, called packages, from the command line in a terminal window. The web push library is installed via NPM. So, in order to install it, you first install Node. Get the latest long-term support version of Node for your operating system at nodejs.org. So I'll click on the LTS version…

Contents