Skip to content

Quick Start

Get CoogCasa running locally for development.

  • Node.js 18+
  • npm or pnpm
  • Git
  • Cloudflare account (for Workers development)
Terminal window
git clone https://github.com/KevinTrinh1227/CoogCasa.git
cd CoogCasa
CoogCasa/
├── web/ # Main website (Astro + React)
├── api/
│ ├── router/ # API router worker
│ └── scholarships-backend/ # Scholarships API
├── bots/ # Discord bots
├── docs/ # This documentation
└── monitor-proxy/ # Status monitoring
Terminal window
cd web
npm install

Create web/.env:

PUBLIC_SUPABASE_URL=https://phjrisqqhaqznpyeeuom.supabase.co
PUBLIC_SUPABASE_ANON_KEY=your-anon-key
PUBLIC_SPORTS_API_URL=https://coog-sports-backend.coog-planner.workers.dev
PUBLIC_SCHOLARSHIPS_API_URL=https://coog-scholarships-backend.coog-planner.workers.dev
Terminal window
npm run dev

The site will be available at http://localhost:4321.

Terminal window
npm run build
npm run preview # Preview the production build

The sports backend is in a separate repository:

Terminal window
cd /path/to/coog-sports-backend
npm install
npm run dev
Terminal window
cd api/scholarships-backend
npm install
npm run dev
Terminal window
cd api/router
npm install
npm run dev
Terminal window
npm run test
Terminal window
npm run lint

Pushing to main branch automatically deploys to Cloudflare Pages.

Terminal window
cd api/router
npm run deploy
CommandDescription
npm run devStart development server
npm run buildBuild for production
npm run previewPreview production build
npm run deployDeploy to Cloudflare
npm run lintRun linting
npm run testRun tests

If port 4321 is in use, Astro will try the next available port (4322, 4323, etc.).

Ensure your Supabase project is active and the anon key is correct. Check the Supabase dashboard for any service disruptions.

  1. Clear the .astro cache: rm -rf .astro
  2. Delete node_modules: rm -rf node_modules
  3. Reinstall: npm install
  4. Try again: npm run build