Vamp UI
October 7, 2016 ยท View on GitHub
How to start up Vamp frontend
First clone the frontend with git. Master branch should be checked out.
Development
- Install all the dependencies using bower and npm:
$ npm install -g gulp gulp-cli
$ npm install
$ bower install
- First set the environment variables. [baseURL] should be the url that the frontend is running on.
$ ./environment.sh [baseUrl]
# example
$ ./environment.sh 192.168.99.100:8080
- Then serve the frontend with gulp. Gulp will set up a web server with all the goodies like
browsersyncetc.
$ gulp serve
Release
- Install all the dependencies using bower and npm:
$ npm install -g gulp gulp-cli
$ npm install
$ bower install
- First set the environment variables. By default
window.location.originwill be used for backend endpoint which makes sense because UI files are served by Vamp itself.
$ ./environment.sh
- Then build the frontend with gulp. Gulp will make a
distdirectory and all the files can be found there.
$ gulp build