Skip to content

gogoneriel/Raid-Showcase

Repository files navigation

Raid Showcase

A small app for teams and friends to track and showcase work, with voting (boost) on posts.

Stack

  • Framework: Next.js 14 (App Router)
  • Language: TypeScript
  • Styling: Tailwind CSS + shadcn-style UI (Radix)
  • Backend/Auth: Supabase
  • Deployment: Vercel-ready

Setup

  1. Install dependencies

    npm install
  2. Environment variables Copy .env.local.example to .env.local and set:

    • NEXT_PUBLIC_SUPABASE_URL — your Supabase project URL
    • NEXT_PUBLIC_SUPABASE_ANON_KEY — your Supabase anon (public) key
  3. Database In the Supabase Dashboard → SQL Editor, run the migration:

    • Open supabase/migrations/20250213000000_create_showcase_posts.sql
    • Paste and run it in your project
  4. Run locally

    npm run dev

    Open http://localhost:3000. Use Add post (sign-in required for posting); the feed and boost work without auth.

Module structure

  • Registry: modules/registry.json — raid-showcase entry with tags and layout: "wide".
  • Module UI: app/modules/raid-showcase/page.tsx and modules/raid-showcase/components/ (Feed, SubmitPostDialog, SummaryWidget).
  • API: app/api/modules/raid-showcase/ — GET (feed), POST (create), GET summary, POST boost.

Auth (posting)

Creating a post requires a signed-in user. The client sends Authorization: Bearer <access_token> from supabase.auth.getSession(). Configure Supabase Auth (e.g. email or OAuth) in your project so users can sign in.

Disable email confirmation (for local development)

To sign up and sign in without waiting for a confirmation email:

  1. Open Supabase Dashboard → your project.
  2. Go to AuthenticationProvidersEmail.
  3. Turn off “Confirm email”.
  4. Save.

After that, new sign-ups get a session immediately and are redirected to the showcase. Turn “Confirm email” back on for production if you want verified emails.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors