This guide covers cloning, installing, and running the project locally.
- Node.js: No specific version pinned in this repository; any current LTS version should work.
- Package Manager: Yarn (this project uses
yarn.lock). - Docker Desktop: Required for the local Supabase stack.
- Git
- Clone the repository:
git clone <repo-url> - Install dependencies:
yarn install
Before running the application, you must complete the setup in SUPABASE.md:
- Ensure Docker Desktop is running.
- Initialize the Supabase Docker stack.
- Configure the required
.env.localfile. - Run the initial database reset.
The project uses .env.local for configuration.
| Variable Type | Purpose | How to manage |
|---|---|---|
| Next.js Public | Client-side app config (NEXT_PUBLIC_*) |
Define in .env.local |
| Supabase CLI | CLI-read secrets (GOOGLE_CLIENT_ID, etc.) |
Define in .env.local |
Note: Required Supabase URL and Anon Key are deterministic for the local stack; refer to SUPABASE.md for details.
- Start the local Supabase stack (if not already running):
yarn db:start
- Start the Next.js development server:
yarn dev
- Access the app:
http://localhost:3000 - Access local Supabase Studio:
http://localhost:54323
For schema or database changes, see the SUPABASE.md migration workflow.
| Script | Description |
|---|---|
yarn dev |
Start development server |
yarn build |
Build the project |
yarn start |
Start production build |
yarn lint |
Run ESLint |
yarn db:* |
Database management commands (see SUPABASE.md) |
src/: Core application source code.components/: UI components (including Radix UI based components).lib/: Utility functions and shared logic.pages/: Next.js Page Router setup.styles/: Global styles and Tailwind configuration.
public/: Static assets (images, fonts, etc.).supabase/: Database migrations and local stack configuration.
git pullyarn install(ifpackage.jsonchanged)yarn db:reset(if teammate added migrations)yarn dev(start dev server)
- Port Conflicts: Ensure ports 3000, 54321, 54322, 54323 are not in use.
- Node Issues: If experiencing odd build errors, try deleting
node_modulesandyarn installagain. - Supabase/Auth Issues: Refer to the "Common Pitfalls" in SUPABASE.md.
- README.md: High-level project overview for non-developers.
- SUPABASE.md: In-depth guide for database and authentication management.