This project is based on Next.js with the new app
directory structure. It also uses Tailwind CSS for styling.
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
-
Create a Firebase app with a Firestore database.
-
Go to Firebase project settings > Service Account and generate a new private key. Download the JSON file and copy the following environment variables: 👇
#.env.development.local
NEXT_PUBLIC_HOST=
PROJECT_ID=
FIREBASE_CLIENT_EMAIL=
FIREBASE_PRIVATE_KEY=
- Create a GitHub authentication application and add
https://yourwebsite.com/api/github-auth
as the redirect URL. Add your GitHub client ID and the secret key to your environment variables.
NEXT_PUBLIC_GITHUB_OAUTH_CLIENT_ID=
GITHUB_OAUTH_CLIENT_SECRET=
- Configure ticket generation by updating the
app/ticket/og/route.tsx
file.