Uses https://github.com/nuxt-alt/auth to support nuxt3 properly. Instructions for discord: https://auth.nuxtjs.org/providers/discord/
Steps:
- Clone project.
- Create an application in https://discord.com/developers/applications.
- Copy client id and client secret from oauth2 settings - https://discord.com/developers/applications/{{yourclientid}}/oauth2/general
- Add client id and client secret to nuxt.config.ts.
- Add redirect uri as "http://localhost:3000/auth/callback" for development.
- Run
yarn install
. - Run
yarn run dev
. - Go to
http://localhost:3000/auth/login
to login.
This repository is bare-boned on purpose. Please open an issue if something is unclear or if something should be added.
Look at the Nuxt 3 documentation to learn more.
Make sure to install the dependencies:
# yarn
yarn install
# npm
npm install
# pnpm
pnpm install
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
Check out the deployment documentation for more information.