Skip to content

Repository files navigation

BugCombat

A real-time coding duel platform where users can challenge each other to solve coding problems head-to-head. AI judges submissions on correctness, cleanliness, efficiency, and security.

Tech Stack

Getting Started

Prerequisites

  • Bun installed

Installation

bun install

Environment Variables

Copy .env.example to .env and fill in your Google Client ID:

cp .env.example .env

Development

bun run dev

Build

bun run build

Preview

bun run preview

Scripts

Command Description
bun run dev Start development server
bun run build Build for production
bun run preview Preview production build
bun run lint Run ESLint
bun run format Format code with Prettier

Project Structure

src/
├── components/
│   ├── ui/              # shadcn/ui components
│   ├── TopNav.tsx       # Navigation bar
│   ├── Footer.tsx       # Site footer
│   └── LoadingSpinner.tsx
├── hooks/               # Custom React hooks
│   ├── use-debounce.ts
│   ├── use-keyboard.ts
│   ├── use-local-storage.ts
│   └── use-mobile.tsx
├── lib/                 # Utilities and helpers
│   ├── auth.ts          # Auth store & API client
│   └── utils.ts         # cn() utility
├── routes/              # TanStack Router file-based routes
│   ├── index.tsx        # Landing page
│   ├── login.tsx        # Sign in
│   ├── register.tsx     # Create account
│   ├── dashboard.tsx    # Dashboard & leaderboard
│   ├── duel.$code.tsx   # Duel arena
│   └── results.$code.tsx # Duel results
├── router.tsx           # Router configuration
├── start.ts             # App entry point
└── styles.css           # Global styles

API

Backend: https://debugduel-backend.onrender.com

See full API docs at /api/docs/ on the backend.

License

MIT

About

React frontend for DebugDuel — a real-time competitive coding platform where developers race to fix bugs, judged by AI

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages