Frontend

Prerequisities

The Management portal Frontend is a Vue.js <https://vuejs.org/> application. In order to build and serve the app, the minimum requisites are the following:

Installation

Install the dependencies:

yarn install

This command will install all the dependencies (Vue.js, mitt, pinia.js, ecc..) from the package.json file inside the project root.

Configuration options

The API endpoints can be configured from the .env file in the project root (do not edit the .env.production file, unless some config changes has to be done):

  • VUE_APP_API_URL: API full URL

  • VUE_APP_DOMAINS_ENDPOINT: Domains service endpoint

  • VUE_APP_DEPLOYMENTS_ENDPOINT: Deployment service endpoint

The following configurations should be functional even with the local development. Unless you are working with a Keycloak local instance, do not edit this variables:

  • VUE_APP_KEYCLOAK_URL: Apache Keycloak IAM full URL

  • VUE_APP_KEYCLOAK_CLIENT_ID: IAM Client ID

  • VUE_APP_KEYCLOAK_REALM: IAM Realm

The Keycloak configuration is provided from the keycloak.json inside ~/public/keycloak.json Here you can find the documentation about the possible client-side configuration

Developer guide

Serve the app:

yarn serve

Compiles and minifies for production:

yarn build

Lints and fixes files:

yarn lint

Authors

Federico Maria Corazza - DST