The official webpage that you find under https://www.cevi-buro-aarau.ch
yarn install
yarn serve
The webpage is then available under localhost:8080
In order to create a production ready build, you need at minimum to specify a valid sentry authentication token. Create a file .env.local and put this line inside: SENTRY_AUTH_TOKEN=***
Replace *** with your token with the scope project:write.
yarn build
yarn test:unit
yarn test:e2e
A coverage report is generated in the folder coverage and tests/e2e/reports
Run a mock of the backend:
docker run --init --rm -v $(pwd):/tmp -p 4010:4010 stoplight/prism:4 mock -h 0.0.0.0 "/tmp/api/Backend.yaml"
Run the webpage:
sed -i 's#VUE_APP_COCKPIT_API=https://cockpit.cevi-buro-aarau.ch/api/#VUE_APP_COCKPIT_API=http://localhost:4010/#g' .env
yarn install
yarn serve
The webpage is then available under localhost:8080
Note: it will fail to load the images/files but it will be able to execute all api calls.
docker build -t cevi-buchs-rohr/website .
docker run -it -p 8080:80 --rm --name cevi-buchs-rohr-website cevi-buchs-rohr/website
The webpage is then available under localhost:8080