mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-06 15:13:39 +09:00
1.1 KiB
1.1 KiB
Host the app from a server (app must have been built)
npm run serve
Fire Edge
Fire Edge server and client
Build & Run
- yarn (this command import the dependecies).
- yarn build (execute the javascript build "bundle")
- yarn start (start the server in port 2616)
Development
- yarn dev (run server in mode development)
How to use
-
Api
REST Interface. Usually Returns OpenNebula resource info. Login returns a JSON Web Token (
JWT).- Login: POST:
http://localhost:2616/api/authwith params:userandpass. - Other: check file
src/config/command-params.js. if requires it to be in a specific zone you must put it at the end but before the query ?zone=ZONE_ID (replace ZONE_ID for the zone id)
- Login: POST:
-
zeroMQ Websocket connection call to:
ws://127.0.0.1:2616/zeromq/?token=JWT
Troubleshooting
-
[nodemon] Internal watch failed: watch ENOSPC for this error run
sudo sysctl fs.inotify.max_user_watches=582222 && sudo sysctl -p -
Starting inspector on 127.0.0.1:9229 failed: address already in use for this error run
killall -9 nodeand start app again
Project description
...