Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/czbone/nuxt3-auth-demo
Nuxt3 authentication demo
https://github.com/czbone/nuxt3-auth-demo
auth daisyui mongodb nuxt3 redis session tailwind vee-validate
Last synced: about 2 months ago
JSON representation
Nuxt3 authentication demo
- Host: GitHub
- URL: https://github.com/czbone/nuxt3-auth-demo
- Owner: czbone
- License: mit
- Created: 2022-10-24T11:10:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-21T23:02:50.000Z (10 months ago)
- Last Synced: 2024-03-22T03:25:34.191Z (10 months ago)
- Topics: auth, daisyui, mongodb, nuxt3, redis, session, tailwind, vee-validate
- Language: TypeScript
- Homepage: https://zenn.dev/czbone/articles/81a279d38ba301
- Size: 43.9 KB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nuxt 3 Authentication Demo
Authentication demo web application with session based on Nuxt 3
## Environment- Node v16.0 above
- Redis v7.0
- MongoDB v6.0## Setup
Install data:
```
$ mongoimport --drop --db sampleDB --collection user --file data/user.json
```Edit `.env` file:
```
SESSION_REDIS_URL=redis://localhost:6379/
MONGO_URL=mongodb://localhost:27017/sampleDB
```Make sure to install the dependencies:
```bash
# yarn
yarn install# npm
npm install
```## Development Server
Start the development server on http://localhost:3000
```bash
# yarn
yarn dev# npm
npm run dev
```## Production
Build the application for production:
```bash
# yarn
yarn build# npm
npm run build
```Launch the application for production:
```bash
# yarn
yarn start# npm
npm start
```## License
[MIT](./LICENSE)