Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Quick navigation

Child pages (Children Display)
alltrue
pageUtilities & Predifined Organs


Panel
titleGoal of the tutorial

Anchor
1
1

The goal of this tutorial is to initiate you to the Spinalcom Drive.


Panel
titleInstallation

Anchor
2
2

First create a new folder and initialize it using npm.

Code Block
languagebash
themeDJango
$ mkdir newfolder
$ cd newfolder
$ npm init -y


Once this is done there are 2 ways to install Spinalcom Drive.

A. Without editing package.json

Code Block
languagebash
themeDJango
npm i https://github.com/spinalcom/spinal-browser-drive.git

B. By editing package.json

Add spinal-browser-drive to the dependencies in package.json.

package.json


Code Block
languagejs
themeDJango
linenumberstrue
{
  "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-drive"
  }
}

Then install it using npm.

Code Block
languagebash
themeDJango
$ npm install



Panel
titleConfiguration

Anchor
3
3

You can check the IP configuration (Port number, IP localhost) in .config.json.


Panel
titleLaunch the hub

Anchor
4
4

Launch the hub and local organs with:

Code Block
languagebash
themeDJango
$ pm2 start launch.config.js

You can see if the hub is running with:

Code Block
languagebash
themeDJango
$ pm2 list



Panel
titleBasic usage

Anchor
5
5

The Drive is a browser application, you need to access it via a browser (you may change the host/port corresponding to your .config.json file):

http://127.0.0.1:7777/html/drive

The basic account is:

UsernameClient IDPassword
admin168JHGgcz45JKilmzknzelf65ddDadggftIO98P