Goal
The goal of this tutorial is to initiate youto the Spinalcom viewer.
Installation
First create a new folder and initialize it using npm.
$ mkdir newfolder $ cd newfolder $ npm init -y
Once this is done there are 2 ways to install Spinalcom Viewer.
A. Without editing package.json
npm i https://github.com/spinalcom/spinal-browser-viewer.git
B. By editing package.json
Add spinal-browser-drive to the dependencies in package.json.
package.json
{ "name": "newfolder", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", // here "dependencies": { "spinal-browser-admin": "git+https://github.com/spinalcom/spinal-browser-viewer" } }
Then install it using npm.
$ npm install