This is a realtime chat application built using Pusher.js for socket features, NextAuth for GitHub authentication, Prisma for database management, and Supabase for PostgreSQL storage. The application is built on Next.js 13 (AppRouter).
To set up the application locally, follow these steps:
- Clone the repository to your local machine.
- Navigate to the project directory.
- Create a
.env
file based on the.env.sample
file provided. - Fill in the necessary values in the
.env
file. - Run
npx prisma db push
. - Run
npm install
. - Run
npm run dev
. - Visit
http://localhost:3000
in your web browser to access the application.
DATABASE_URL
: The URL for your PostgreSQL database.GITHUB_CLIENT_ID
andGITHUB_SECRET_ID
: Your GitHub OAuth App client ID and secret.PUSHER_APP_ID
,PUSHER_SECRET
, andNEXT_PUBLIC_PUSHER_KEY
: Pusher API credentials.NEXTAUTH_SECRET
: A random string used for NextAuth.js token encryption.
- Next.js 13 (Experimental AppRouter)
- Pusher.js
- NextAuth.js
- Prisma
- Supabase