/bmm-web

Primary LanguageVueGNU Affero General Public License v3.0AGPL-3.0

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

Type Support For .vue Imports in TS

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:

  1. Disable the built-in TypeScript Extension
    1. Run Extensions: Show Built-in Extensions from VSCode's command palette
    2. Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)
  2. Reload the VSCode window by running Developer: Reload Window from the command palette.