Webauthn_client_vite/README.md
2025-12-04 00:05:35 +08:00

40 lines
616 B
Markdown

# Client Webauthn con vite
```sh
npm create vite@latest webauthn-clien
```
scegliere
vanilla js no yes
entrare nellaa cartella salvare con altro nome i file index.html src/main.js
ed inserire quelli nuovi compreso vite.config.js con quelli del git
```sh
cd webauthn-client
mv index.html index.html.old
mv src/main.js src/main.js.old
nano index.html
nano src/main.js
nano vite.config.json
```
in vite.config.js ci sono host e porta
installare
```sh
npm install @simplewebauthn/browser
```
poi lanciare in modalità sviluppo
npm run dev
oppure costruirlo
npm run build
e poi avviarlo
npm run preview