The repository containing the backend can be found here: https://github.com/HerrMotz/Competency-Question-Manager-Backend
We rely on backend compatibility. Therefore, we structure our branches in folders, where the first layer is the name of the backend branch our branches are compatible with.
For example:
Our branch feature-detail-view
which is compatible with the backend branch add-comments
will be named backend-add-comments/feature-detail-view
.
Put a .env
-file in the frontend src
directory.
VITE_API_URL="http://localhost:8000"
- The application can be built using the Docker compose file. The built static website is exported to the host's
dist
directory and can be deployed to a webserver directly.
docker-compose up
- For development, we recommend a Linux machine (or WSL for Windows Hosts)
- We do not recommend the usage of a Docker container for development purposes (because of overhead and resulting reduction of performance, but also because of difficult handling)
To run the application in development mode (hot reloads)
npm run dev
- VS Code + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
- JetBrains Webstorm with configuration as described here.
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.