Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/damien-hl/nuxt3-auth-example
Example of a simple authentication system using Nuxt3
https://github.com/damien-hl/nuxt3-auth-example
auth authentication example nuxt nuxt3 typescript vue3
Last synced: 5 days ago
JSON representation
Example of a simple authentication system using Nuxt3
- Host: GitHub
- URL: https://github.com/damien-hl/nuxt3-auth-example
- Owner: damien-hl
- Created: 2022-05-09T06:51:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-31T15:31:23.000Z (22 days ago)
- Last Synced: 2025-01-10T15:12:51.162Z (12 days ago)
- Topics: auth, authentication, example, nuxt, nuxt3, typescript, vue3
- Language: TypeScript
- Homepage: https://nuxt3-auth-example.vercel.app
- Size: 2.66 MB
- Stars: 369
- Watchers: 11
- Forks: 64
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nuxt 3 Auth example
This application is a simple example of how to implement a local authentication system using Nuxt.
![Cover](./.github/assets/banner.jpg)
## 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:
```bash
# yarn
yarn install# npm
npm install# pnpm
pnpm install --shamefully-hoist
```Copy the `.env.example` file to `.env` and fill in the values.
```bash
cp .env.example .env
```## Development Server
Start the development server on http://localhost:3000
```bash
npm run dev
```## Production
Build the application for production:
```bash
npm run build
```Locally preview production build:
```bash
npm run preview
```Checkout the [deployment documentation](https://v3.nuxtjs.org/docs/deployment) for more information.
## Credits
- [Nuxt](https://nuxt.com/)
- [UnoCSS](https://unocss.dev/)
- [The Copenhagen Book](https://thecopenhagenbook.com/)