Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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/)