magneticio / vamp-ui

Vamp's user interface
14 stars 7 forks source link

Vamp UI

Build Status

How to start up Vamp frontend

First clone the frontend with git. Master branch should be checked out.

Development

1) Install all the dependencies using bower and npm:

$ npm install -g gulp gulp-cli
$ npm install
$ bower install

2) 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

3) Then serve the frontend with gulp. Gulp will set up a web server with all the goodies like browsersync etc.

$ gulp serve

Release

1) Install all the dependencies using bower and npm:

$ npm install -g gulp gulp-cli
$ npm install
$ bower install

2) First set the environment variables. By default window.location.origin will be used for backend endpoint which makes sense because UI files are served by Vamp itself.

$ ./environment.sh

3) Then build the frontend with gulp. Gulp will make a dist directory and all the files can be found there.

$ gulp build

Building and running Docker image with Vamp and Vamp UI