This is a Next.js project bootstrapped with create-next-app
.
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 and with a firestore database.
-
Go to firebase project setting > Service account and generate a new private key,Download the json file and add the copy the following environment variables 👇
#.env.development.local
NEXT_PUBLIC_HOST=
PROJECT_ID=
FIREBASE_CLIENT_EMAIL=
FIREBASE_PRIVATE_KEY=
- Create a Github auth application and add
https://yourwebsite.com/api/github-auth
as redirect url. Add you github client id and the the secret key to your environment variables:
NEXT_PUBLIC_GITHUB_OAUTH_CLIENT_ID=
GITHUB_OAUTH_CLIENT_SECRET=
- Configure Cloudinary to generate images see
utils/ticket-image-generator.ts