Skip to content

Samkwizera/courtava-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Courtava

A mobile-first PWA for finding basketball courts, organizing pickup games, and connecting with players in your area.

Features

  • Courts — Browse and filter nearby basketball courts with map view and check-in support
  • Games — Create and join pickup games, view upcoming sessions
  • Players — Discover and connect with players in your community
  • Communities — Create or join local basketball communities
  • Profile — Manage your player profile, skill level, and activity history
  • Check-in notifications — Get notified when players check in at courts near you

Tech Stack

  • React 18 + TypeScript + Vite
  • Tailwind CSS + shadcn/ui for styling
  • Supabase for auth, database, and real-time features
  • Mapbox GL for court maps and geolocation
  • TanStack Query for data fetching
  • Cloudflare Workers for deployment (wrangler)
  • Vitest for testing

Getting Started

Prerequisites

  • Node.js 18+
  • npm

Install & Run

git clone https://github.com/Samkwizera/courtava-code.git
cd courtava-code
npm install
npm run dev

The app runs at http://localhost:5173.

Environment Variables

Create a .env file at the root with your Supabase credentials:

VITE_SUPABASE_URL=your_supabase_project_url
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key
VITE_MAPBOX_TOKEN=your_mapbox_token

Database

Migrations are in supabase/migrations/. Apply them via the Supabase CLI:

supabase db push

Scripts

Command Description
npm run dev Start dev server
npm run build Production build
npm run preview Build and preview via Wrangler
npm run deploy Deploy to Cloudflare Workers
npm run test Run tests
npm run lint Lint source files

Deployment

The app deploys to Cloudflare Workers via Wrangler. See wrangler.jsonc for configuration.

npm run deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors