This is the first tutorial using the APIs in the Initial Developer Release.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
This tutorial project has been tested on Ubuntu 16.04 LTS and the latest version of nodejs.
To install nodejs, follow instructions below:
$ curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
$ sudo apt-get install -y nodejsThis process might take a long time.
Check your nodejs version by:
$ sudo nodejs -vNext, you need to create a directory for your own test and install the following modules needed for this project into the directory.
$ npm init --yes
$ npm i request --save
$ npm i express --save
$ npm i eventsource --saveFinally, please put the 3 files in this project into the same directory and run the following.
$ nodejs tutorial_1.jsThis material is Copyright (c) 2018 Artofus and licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the LICENSE.md file for details