Pechakucha Project

A Next.js project with Supabase, Tailwind CSS v4, ESLint, and Bun package manager.

Tech Stack

  • Next.js 15 - React framework with App Router
  • Supabase - Backend as a Service (BaaS)
  • Tailwind CSS v4 - Utility-first CSS framework
  • ESLint - Code linting and formatting
  • Bun - Fast package manager and runtime
  • TypeScript - Type-safe JavaScript

Getting Started

Prerequisites

  • Bun installed on your system
  • A Supabase project (create one at supabase.com)

Installation

  1. Clone the repository:
git clone <your-repo-url>
cd pechakucha
  1. Install dependencies:
bun install
  1. Set up environment variables:
cp .env.local.example .env.local
  1. Configure your Supabase credentials in .env.local:
NEXT_PUBLIC_SUPABASE_URL=your_supabase_project_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
  1. Run the development server:
bun dev

Open http://localhost:3000 with your browser to see the result.

Project Structure

pechakucha/
├── src/
│   ├── app/                 # Next.js App Router pages
│   ├── lib/
│   │   └── supabase/        # Supabase client configurations
│   │       ├── client.ts    # Browser client
│   │       ├── server.ts    # Server client
│   │       └── middleware.ts # Middleware helper
│   └── middleware.ts        # Next.js middleware
├── .env.local              # Environment variables
└── package.json            # Dependencies and scripts

Available Scripts

  • bun dev - Start development server
  • bun build - Build for production
  • bun start - Start production server
  • bun lint - Run ESLint

Supabase Integration

This project includes:

  • Client-side Supabase client (src/lib/supabase/client.ts)
  • Server-side Supabase client (src/lib/supabase/server.ts)
  • Middleware for authentication (src/middleware.ts)
  • Example usage in the main page component

Learn More