UI for CAIRIS.
yarn install
yarn run serve
yarn run build
yarn run test
yarn run lint
Normally, all you have to do is go to cairis/cairis/bin on the server and run sudo -E ./installUI.sh
.
If you want to manually deploy latest version of the UI then do the following:
- Run
yarn run build
to create a deployable dist directory. Copy this to the cairis/cairis directory on your server. - Set the web_static_dir and web_asset_dir entries in your cairis.cnf to point to this dist directory.
If you're developing for CAIRIS, you can use the cairis_test_default database to avoid authentication. To do this, you should add a .env.development file to the cairis-ui root directory. In this file, you should set the VUE_APP_TEST_SESSION environment variable to test, and VUE_APP_TEST_CAIRIS_SERVER to the CAIRIS server hostname or IP address.