The frontend is the main entry point for users of RIS norms.
From here the users can handle their procedures ("Vorgänge").
- Node.js (with a
.node-version
file) for simplified setup using `nodenv``
npm i
fetches all dependenciesnpm run dev
starts the application. By default on local port 5173. You will also need a running backend.npm run test
runs the tests (in watcher mode)npm run coverage
compiles a coverage report viav8
npm run style:check
does linting and formattingnpm run style:fix
will try to fix linting and formatting issuesnpm run build
builds the appnpm run histoire
shows the frontend components in isolation
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup>
SFCs, check out the script setup docs to learn more.
- VS Code + 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.
Playbook:
- Make sure the backend runs here.
- Make sure the frontend runs here.
- Install Playwright
- Let Playwright know where to connect to by using the .env file:
cp .env.local.example .env.local
- Run the E2E Test
All icons in the Google Material sets can be used.
To make the icon available in your code:
- Find and select the icon
- Copy the name (e.g. ic/baseline-upload-file)
- Use the copied icon name in your import statement using the
~icons/ic
prefix followed by the name. Example:import UploadFileOutlineRounded from "~icons/ic/baseline-upload-file"
npx --yes playwright install --with-deps chrome firefox webkit
Run all tests:
npm run test:e2e
Run just 1 specific test:
npm run test:e2e -- [testfile]
Debug an e2e test:
npm run test:e2e -- [testfile] --debug