Skip to content

damien-hl/nuxt3-auth-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0ea79c8 · Jan 29, 2025
Dec 3, 2024
Dec 3, 2024
Apr 8, 2024
Dec 31, 2024
May 9, 2022
Dec 31, 2024
Dec 31, 2024
Dec 27, 2023
Apr 8, 2024
Dec 5, 2024
Dec 5, 2024
Dec 3, 2024
Nov 11, 2024
Dec 5, 2024
Jan 29, 2025
Jan 29, 2025
Dec 27, 2023
Dec 27, 2023

Repository files navigation

Nuxt 3 Auth example

This application is a simple example of how to implement a local authentication system using Nuxt.

Cover

Features

  • 🔐 Login with email and password
  • 🛡️ Guest, private and admin only pages
  • 🔥 Keep user authenticated after page refresh

Setup

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

Development Server

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

npm run dev

Production

Build the application for production:

npm run build

Locally preview production build:

npm run preview

Checkout the deployment documentation for more information.

Credits