bmm-web
This repository will be used for a new website for https://bmm.brunstad.org using VueJS. In a later stage we want to use the same code to create a desktop app.
This repository uses Vue 3 <script setup>
SFCs, check out the script setup docs to learn more.
Running
pnpm i
pnpm dev
Until there's a proper login mechanism in place, you'll have to extract a valid token e.g. by accessing https://int-bmm.brunstad.org and extracting it from one of the requests to https://int-bmm-api.brunstad.org.
Note: If you had an error in your code and the system still shows you the error but you've already fixed it, consider running pnpm clean
. If you have this problem often, consider contacting one of the maintainers of the project.
BMM-API-SDK
Generate types and functions with pnpm generate
.
Recommended IDE Setup
- VS Code + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar) + Stylelint
.vue
Imports in TS
Type Support For 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.