Module Occupation Matching
ASSESSMENT frontend
Competency analysis tool (KYC)
General info
Global dependencies:
Docker and docker-compose Use docker images or run with node.js natively
yarn (package manager used instead of npm)
git as version control system using rebase instead of merge.
The backend API will be available in the repository MOM assessment backend
Frameworks:
VueJS main javascript framework
Vuetify UI framework with handy components
TypeScript As programming language
Environment variables:
VUE_APP_APILocation for the API serviceVUE_APP_SUBPATHSubdomain where the app is going to be servedVUE_APP_PLATFORMTo be used as platform identifier (currently not used)VUE_APP_TARGET_PROXYReal domain to connect to the backend API after proxy forwardDATE_IMG_TAGVersion number
Platform customizations:
Configuration endpoint
/api/v2/configs/mom_frontshould return from database a list of entries to allow platform configurationCustom themes can be added in the config endpoint using the key
color_theme, adding the files to/pluings/themes/<lightTheme>.tsand importing them intoconst themesIndexfrom/pluings/themes/index.tsCustom translations can be added in the config endpoint using the key
custom_localeand adding the files to/pluings/i18n/<lang>-<platform>.ts
Build Setup
Useful notes when running development built:
API requests are been sent via a proxy forward defined with
VUE_APP_TARGET_PROXYto avoid CORS issues.Login action in production is different that in development
Logout action is not implemented in development (in order to logout, cookies have to be removed manually)
Related links are going to work different (while in development they are going to look like localhost:8080, when deployed to production those relative links are going to change to the real production domain)
With Docker:
Docker compose file is ready to use, just run docker-compose -f ./docker-compose.yml up -d.
When working with docker-compose.yml it is important to change the environment variable VUE_APP_TARGET_PROXY to the correct domain where the API endpoints are available.
You can access the login page by default going to http://localhost:8080/assess/en/login where assess is defined with environment variable VUE_APP_SUBPATH.
Without Docker:
Alternatively you can work without docker with the following commands:
Install dependencies:
yarn installBuild and hot-reload for development:
yarn devBuild and minify for production:
yarn buildLint:
yarn lintCustomize configuration
License
The source code for the site is licensed under the MIT license, which you can find in the LICENSE file included in this repository.
Last updated