Get OOOC Fête Finder up and running on your local machine in just a few minutes. This guide walks you through the essential setup steps to start developing with the app.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/KingPsychopath/oooc-fete-finder/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, ensure you have the following installed:Node.js
Version 18.x or higher
pnpm
Version 8.x or higher
PostgreSQL
Version 14.x or higher
Installation
Follow these steps to get your development environment set up:Install dependencies
Install all required dependencies using pnpm:This will install Next.js, React, Postgres client, and all other dependencies defined in
package.json.Configure environment variables
Create a Edit
.env file in the root directory by copying the example file:.env and set the required variables:Generate a secure
AUTH_SECRET using: openssl rand -base64 32Bootstrap the database
Initialize the Postgres event store with sample data:This script will:
- Create the required database tables
- Seed initial event data from CSV
- Set up the event store schema
Start the development server
Run the Next.js development server:The app will be available at
http://localhost:3000Verify the installation
Open your browser and navigate to:
- Homepage:
http://localhost:3000- View public event listings - Admin:
http://localhost:3000/admin- Access admin console (requiresADMIN_KEY)
If you set an
ADMIN_KEY in your environment, you’ll be able to log in to the admin panel and manage events.Verify your setup
- Health check
- Manual verification
- Database check
Run the health check script to verify all systems are working:You should see output confirming:
- ✓ Database connection is active
- ✓ Event store is populated
- ✓ Admin endpoints are accessible
Optional: Bootstrap featured events
If you want to set up featured event scheduling:Featured values from CSV rows into the dedicated featured event scheduler queue.
Development commands
Here are the most common commands you’ll use during development:| Command | Description |
|---|---|
pnpm dev | Start development server with hot reload |
pnpm build | Build the production application |
pnpm start | Start production server (after build) |
pnpm lint | Run Biome linter |
pnpm lint:fix | Auto-fix linting issues |
pnpm test | Run Vitest tests |
pnpm test:watch | Run tests in watch mode |
pnpm db:cli | Interactive database status CLI |
Troubleshooting
Port 3000 is already in use
Port 3000 is already in use
If port 3000 is already in use, you can specify a different port:
Database connection failed
Database connection failed
Verify your Common issues:
DATABASE_URL is correct and PostgreSQL is running:- PostgreSQL service not running
- Incorrect credentials in
DATABASE_URL - Database does not exist (create it first:
createdb oooc_fete)
AUTH_SECRET error
AUTH_SECRET error
If you see errors about
AUTH_SECRET:- Ensure it’s set in your
.envfile - Make sure it’s at least 32 characters long
- Generate a new one:
openssl rand -base64 32 - Restart the dev server after updating
.env
DATA_MODE not set
DATA_MODE not set
If you see “DATA_MODE is required in production”:Valid values:
remote- Use Postgres as primary source (recommended)local- Use local CSV files onlytest- Use in-memory test data
Admin access denied
Admin access denied
If you can’t access
/admin:- Ensure
ADMIN_KEYis set in.env - Clear your browser cookies and try again
- Check that you’re entering the correct admin password
- Restart the dev server after setting
ADMIN_KEY
Next steps
Now that you have OOOC Fête Finder running locally, explore these guides:Environment setup
Learn about all available environment variables
Architecture overview
Understand the system architecture
Admin workflow
Learn how to manage events and content
API reference
Explore the public and admin APIs