Due to a ransomware attack, the wiki was reverted to a July 2022 version. . We apologize for the lack of a more recent valid backup.
...
- Download Node 5.x version using wget
- Install NodeJS binary in /usr/local as follows
Code Block theme Emacs language perl theme Emacs title NodeJS 5.x installation cd /usr/local tar --strip-components 1 -xzf <path-to-downloaded>/node-v5<ver>-linux-x64.tar.gz
- Verify installation
Code Block theme Emacs language perl theme Emacs title Verifying Installation :~/onos/web/gui/src/main/webapp$ node -v v5.12.0
Installing & Starting Development Server:
Enter `tools`web/gui/src/main/webapp/` folder
Run `npm install` to install required dependency
Run `npm run dev`start` to open start the development environment
In the console you should see something like:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
In the console you should see something like: ``` [18:05:47] Requiring external module babel-register [18:05:50] Using gulpfile ~/SDN/onos/tools/gui/gulpfile.babel.js [18:05:50] Starting 'bundle-js'... [18:05:50] Starting 'proxy-server'... [18:05:50] Webserver started at http://localhost:8189 [18:05:50] Finished 'proxy-server' after 7.73 ms [18:05:50] Starting 'watch-js'... [18:05:50] Finished 'watch-js' after 85 ms [18:05:51] Finished 'bundle-js' after 374 ms [18:05:51] Starting 'serve'... [HPM] Proxy created: [ '**/*.js', '!/onos/ui/onos.js' ] -> Dev server is up and listening on http://localhost:8189 [HPM] Proxy created: **/*.js.map -> http://localhost:8189 [HPM] Subscribed to http-proxy events: [ 'error', 'close' ] [18:05:51] Finished 'serve' after 63 ms [18:05:51] Starting 'default'... [18:05:51] Finished 'default' after 3.76 μs [Browsersync] 8182 [BS] Proxying: http://localhost:8181 [BrowsersyncBS] Access URLs: ---------------------------------- Local: http://localhost:3000 External: http://10.1.8.5046:3000 ---------------------------------- UI: http://localhost:3002 UI External: http://10.1.8.5046:3002 ---------------------------------- [18:06:10BS] Starting 'bundle-js'... [Browsersync] Reloading Browsers... [18:06:11] Finished 'bundle-js' after 656 msWatching files... ``` |
To open ONOS visit the local URL (eg: `http://localhost:3000`) plus `/onos/ui`
(eg: `http://localhost:3000/onos/ui`)
...
Note that ONOS_EXTERNAL_APP_DIRS is an environment variable,so it can be set with
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
export ONOS_EXTERNAL_APP_DIRS="sampleCustom:../../meow/sample/meowster-sample/" |