Brand new Cerberus front-end implementation
npm install
ng serve
This application is secured by keycloak (https://www.keycloak.org).
You can both :
You just have to clone the repo and you're good to go. An internet connection is therefore necessary. NB: You must deploy the application on default port 4200 (only this URL is configured on the online keycloak)
Please follow the instructions on cerberus-source repository (https://github.com/cerberustesting/cerberus-source/blob/master/INSTALL.tomcat) to deploy Cerberus and Keycloak on your local environment.
In cerberus-angular, edit environment.ts
file with your corresponding URLs :
keycloakConfig
object
// KEYCLOAK INFORMATION
let keycloakConfig: any = {
url: 'http://localhost:38080/auth', //right here
realm: 'Cerberus',
clientId: 'cerberus-angular'
};
// CERBERUS API ENDPOINT
let API_endpoint: string = "http://localhost:8080";
The application is configured by default to work with cerberus-angular
keycloak client with the following configuration :
As soon as you have access to the repository, please make sure before any push :
ng lint
returns no errorng build --prod
runs flawlesslyThe latest developements are available at: https://front-qa.cerberus-testing.org
In order to run it inside a docker container you can use :
# Build the image
sudo docker build -t cerberus-angular .
# Run it
sudo docker run -it -v ${PWD}:/usr/src/app -v /usr/src/app/node_modules -p 4200:4200 --rm cerberus-angular