This repository contains the frontend for the Augustin bargeldlos project. It is based on Vite and Vue 3. See the backend repository on how-to get started.
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
TypeScript cannot handle type information for .vue
imports by default, so we replace the tsc
CLI with vue-tsc
for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue
types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensions
from VSCode's command palette - Find
TypeScript and JavaScript Language Features
, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Window
from the command palette.
Install Node.js and Yarn and run the following commands:
yarn install
yarn dev
yarn build
Run Unit Tests with Vitest
yarn test:unit
Run End-to-End Tests with Cypress
yarn test:e2e:dev
This runs the end-to-end tests against the Vite development server. It is much faster than the production build.
But it's still recommended to test the production build with test:e2e
before deploying (e.g. in CI environments):
yarn build
yarn test:e2e
Lint with ESLint
yarn lint
to fix linting errors automagically run
yarn lint:fix
Format with Prettier
yarn format
to fix formatting errors automagically run
yarn format:fix
cd c:\'Program Files'\Google\Chrome\Application
.\chrome.exe --user-data-dir="C://chrome-dev-disabled-security" --disable-web-security --disable-site-isolation-trials
please use the Keycloak Setup provided by the backend
vivawallet checkout will redirect the user to https://www.local.com/success?t={TRANSACTION_ID}&s=4101073583353389&lang=en-GB&eventId=0&eci=1 To test the validation locally the programmer must manually change the url in the browser to http://localhost:5137/success?t={TRANSACTION_ID}&s=4101073583353389&lang=en-GB&eventId=0&eci=1
For building and running the frontend in a docker container, use the following commands:
docker build . -t augustin/augustin-frontend
docker run --rm -p 8060:80 -e VITE_API_URL=http://localhost:3000/ -e VITE_KEYCLOAK_URL=http://keycloak:8080/ augustin/augustin-frontend
Note: the container will be removed after it is stopped. If you want to keep it, remove the --rm
flag.
The delimiter is a ;
and the first line is the header. The header is not used for the import.
PLZ;Station/Supermarkt;Adresse;Arbeitszeit;Nummer;Ausweis Nr.;Vorname;Nachname;Sprache
1230;Billa Plus;Schönestr 6;G;;A-123;Augustin;Augustina;engl/deutsch