Nuxt 3 + Nuxt Auth Utils + Nuxt Authorization + NuxtUI simple auth demo
Based on this recipe.
And also credits to this blog post.
pnpm i
Copy .env.example
to .env
.
Create database
pnpm db:push
http://localhost:3000
:pnpm dev
[!IMPORTANT] YOU SHOULD HAVE
.env
file with NUXT_SESSION_PASSWORD and DB_FILE_NAME variables. Example in .env.example
Build the application for production:
pnpm build
Locally preview production build:
pnpm preview