Skip to content

badgeteam/mch2022-webusb-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 7, 2023
ea484a4 · Apr 7, 2023

History

19 Commits
Apr 6, 2023
Apr 7, 2023
Apr 1, 2023
Apr 2, 2023
Apr 6, 2023
Apr 7, 2023
Mar 29, 2023
Mar 29, 2023
Mar 29, 2023
Apr 4, 2023
Apr 6, 2023
Apr 7, 2023
Apr 1, 2023
Mar 29, 2023
Apr 7, 2023

Repository files navigation

MCH2022 badge WebUSB companion

Look at the Nuxt 3 documentation to learn more.

Setup

Make sure to install the dependencies:

# yarn
yarn install

Development

Start the development server on http://localhost:3000

yarn dev

Access BadgeUSB API

The BadgeAPI is available through the plugin set up in plugins/badgeUSB.client.ts. You can use it in a page or component like this:

<template>
  ...
</template>

<script lang="ts" setup>
const { $BadgeAPI } = useNuxtApp();

/* do stuff */
</script>

Production

Build the application for production:

yarn build

Locally preview production build:

yarn preview

Check out the deployment documentation for more information.