SUMMA User Interface that connects to summa-platform API.
Requires any of the two following setups:
- Node.js 6+ with NPM 3+
- docker with docker-compose
Install Node.js with NPM and install Aurelia CLI globally:
$ npm intall -g aurelia-cli
To compile and run a webserver:
$ au run
To auto-recompile on changes for development:
$ au run --watch
To start standalone UI, run:
$ docker-compose up
To rebuild source on running system:
$ docker-compose start build
Docker configuration uses two separate images: one for building sources, one for serving content and proxying API calls (using nginx). Such setups allows to keep source directory clean and organized.
Use docker-compose.integrate.yaml as basis for integrating into summa-platform.
Front-end uses API URL specified in api-proxy.json
(sample provided in api-proxy.sample.json
), by default it is set to /api
endpoint, which in turn is proxied to the external API configured either in api-proxy.conf
(if run using au run
) or api-proxy-nginx.conf
if run in docker.