Look at the Nuxt 3 documentation to learn more.
Make sure to install the dependencies:
# yarn
yarn installStart the development server on http://localhost:3000
yarn devThe 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>Build the application for production:
yarn buildLocally preview production build:
yarn previewCheck out the deployment documentation for more information.