Application to receive and process data from the revealjs-analytics-plugin. Build with Next.js, Tailwind CSS, shadcn and Prisma
- Node.js
22.14. - Recommended: Pnpm
- Docker + Docker Compose
-
Create a environment file
cp .env.example .env.local
-
Create a GitHub OAuth App for handling authentication.
-
Under GitHub Developer OAuth Settings create a new OAuth App with the following settings:
- Name: e.g.
Reveal.js Analytics - Homepage URL:
http://localhost:3000 - Authorization callback URL:
http://localhost:3000/api/auth/callback/github
- Name: e.g.
-
Add the
Client IDandClient Secretto the.env.localfile under the following keys:AUTH_GITHUB_ID= AUTH_GITHUB_SECRET=
-
Start local development database.
docker-compose up -d
-
Create the database schema and seed the database.
pnpm prisma:migrate:dev
-
First, run the development server:
pnpm dev # or npm run dev
Open http://localhost:3000 with your browser to see the app.
MIT licensed
Copyright (c) 2025 Manh Tin Nguyen