Installing Node.js

Unlike the other platforms, we don't need to install anything more on the device to use an AR web app. However, we do need a way to serve up our web application pages to a device. Typically, this is done with a web server, like IIS, Tomcat, Jetty, Node, or others. For our purpose, we just need a simple HTTP server to serve up static HTML content. Fortunately, Node provides a package just for running a simple HTTP server from a folder. In order to get this package, we first need to install Node. Follow the given steps to install Node:

  1. Download and install the Long Term Support (LTS) version of Node.js from Nodejs.org. Just follow the instructions on the page and installer. Ensure that you set the PATH when installing to Windows.
Node.js is a lightweight, non-blocking, and event-driven JavaScript runtime built on top of Chrome's JavaScript runtime. It has become hugely popular due to its massive library of modules or packages. We are installing Node.js just to use a Node.js package.
  1. Open Command Prompt or shell and enter the following:
npm
  1. If you have everything installed correctly, you should see a message showing the npm usage.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.225.254.192