This application is a simple example of how to implement a local authentication system using Nuxt.
- 🔐 Login with email and password
- 🛡️ Guest, private and admin only pages
- 🔥 Keep user authenticated after page refresh
Make sure to install the dependencies:
# yarn
yarn install
# npm
npm install
# pnpm
pnpm install --shamefully-hoist
Copy the .env.example
file to .env
and fill in the values.
cp .env.example .env
Start the development server on http://localhost:3000
npm run dev
Build the application for production:
npm run build
Locally preview production build:
npm run preview
Checkout the deployment documentation for more information.