Panel | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
Description du systeme This system, based on our understanding of intelligent micro-system, is composed of the following organs:
| ||||||||||||||
Panel | ||||||||||||||
| ||||||||||||||
Anchor | | 2 | 2 |
|
NodeJS version
Install the package from npm:
Code Block | ||||
---|---|---|---|---|
|
npm install https://github.com/spinalcom/spinal-browser-admin.git |
You can require the module in the standard way:
client ID
Code Block | ||||
---|---|---|---|---|
| ||||
~/button-system$ pm2 start launch.config.js |
PM2 will automatically start the Spinal Hub and the organs. Take care, if you have another hub running on port 7777, your new hub will not be launched ! (here is a command to see what port are used on ubuntu: sudo netstat -lp --inet)
After this installation, only SpinalHub is running on port 7777. SpinalHub containes a web server that provide his own Admin interface. Here is the architecture of the system you have after this first install:
Connect to Admin UI
As we have done in the getting started, connect to the admin dashboard to see if you hub is running :
http://127.0.0.1:7777/html/admin
The default admin account is :
const spinalCore = require("spinal-core-connectorjs"); |
Browser version
Download the SpinalCore browser version from http://resources.spinalcom.com/spinalcore.browser.js
Add it to your HTML file:
Code Block | ||||
---|---|---|---|---|
| ||||
<script type="text/javascript" src="/path/to/spinalcore.browser.js"></script> |
Most of the API is exposed in a global object named spinalCore.
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
|
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
|
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
|
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
|