Running the Administration Application from Sources
Prerequisites:
- Start running the Metric Platform.
Development Toolkits
Scava Administration is a based on Angular 6 Framework. To get started with Angular, it's better to install Angular CLI 6.1.4 tool to make application development more quicker and easier (Find more here: https://angular.io/guide/quickstart).
sudo npm install @angular/cli@6.1.4
Get the Code
Get the latest version of the code, and checkout the dev
branch. Please don't commit to the master
branch: see the Development Guidelines:
If you are using Linux / OS X:
git clone https://github.com/crossminer/scava.git scava
cd scava
git checkout dev
If you are using Windows you need to do things differently due to Windows' long file name limit. In the Git shell:
mkdir scava
cd scava
git init
git config core.longpaths true
git add remote origin https://github.com/crossminer/scava.git
git fetch
git checkout dev
Run the Administration webapp
The following instructions show how to run the dashboard web app from source:
- Enter the
administration/scava-administration/
directory within the Scava repository. - Under the subdirectory
src/assets/config
edit theexternalConfig.json
file and add the configuration as following:API Gateway Configuration { "SERVICE_URL": "${API_GATEWAY_URL}" }
- Under the directory
administration/scava-administration/
, install the project dependencies usingnpm install
. - Run the web app's embedded server using angular-cli:
ng serve
. - Navigate to
http://localhost:4200/
.