A platform for developers to share code snippets and solve programming challenges.
Built with Next.js 16 (App Router), Supabase (GitHub & Discord OAuth + Postgres), and Tailwind CSS.
Prerequisites: Node.js 20+ and a Supabase project.
-
Install dependencies:
npm install
-
Create
.env.local(see .env.example) and set your Supabase credentials:NEXT_PUBLIC_SUPABASE_URL="https://your-project.supabase.co" NEXT_PUBLIC_SUPABASE_ANON_KEY="your-anon-key"
-
Set up the database. In the Supabase SQL Editor, run
supabase/schema.sqlto create theprofiles,snippets, andfavoritestables with Row Level Security. -
Enable the GitHub auth provider in your Supabase dashboard (Authentication → Providers) and add
http://localhost:3000/auth/callbackas a redirect URL. -
Run the app:
npm run dev