A modern, real-time collaborative ordering and bill management system for parties and events.
Features • Getting Started • Tech Stack • Contributing • License
BroCode Spot is a full-stack web application designed to streamline group ordering at parties, events, and social gatherings. It enables users to collaboratively order drinks, food, and cigarettes while tracking individual bills and managing payments in real-time.
- No more confusion about who ordered what at a party
- Real-time bill tracking for each participant
- Easy payment management for hosts and organizers
- Collaborative ordering without the chaos
- 📱 Mobile-First Design - Beautiful, responsive UI optimized for mobile devices
- 🍹 Browse & Order - Explore drinks, food, and cigarettes with an intuitive catalog
- 💰 Personal Bill Tracking - View your individual bill with itemized breakdown
- 🔔 Real-Time Updates - See orders and bills update instantly via Supabase subscriptions
- 🔐 Secure Authentication - Google OAuth and email-based authentication
- 📊 Master Bill View - See all orders across all participants
- 📤 Excel Export - Download complete order data for accounting
- 🏪 Spot Management - Create and manage event locations
- 👥 User Management - Track who's at your spot and their orders
- 💳 Payment Status - Mark payments as pending, paid, or partially paid
- Real-time Sync - Powered by Supabase real-time subscriptions
- Offline Support - Service worker for PWA capabilities
- Type Safety - Full TypeScript implementation
- Modern Build - Vite for lightning-fast development
- Node.js >= 18.0.0
- npm >= 9.0.0
- Supabase Account (free tier works)
-
Clone the repository
git clone https://github.com/yourusername/brocode-spot.git cd brocode-spot -
Install dependencies
npm install
-
Set up environment variables
Create a
.envfile in the root directory:VITE_SUPABASE_URL=your_supabase_project_url VITE_SUPABASE_ANON_KEY=your_supabase_anon_key
-
Set up Supabase
Run the SQL migrations in your Supabase SQL editor. The schema includes:
profiles- User profiles and authenticationspots- Event/party locationsdrinks,food,cigarettes- Product catalogspayments- Order and payment trackingdrink_brands- Brand management
-
Start the development server
npm run dev
-
Open in browser
http://localhost:5173
npm run build
npm run preview # Preview the production build| Category | Technology |
|---|---|
| Frontend | React 18, TypeScript, Vite |
| Styling | Tailwind CSS |
| Backend | Supabase (PostgreSQL + Auth + Realtime) |
| State Management | React Hooks, Context API |
| Authentication | Supabase Auth (Google OAuth, Email) |
| Data Export | XLSX.js |
| Icons | Lucide React |
| Routing | React Router v6 |
brocode-spot/
├── components/ # Reusable UI components
│ ├── common/ # Button, Card, Modal, Input
│ └── ...
├── contexts/ # React Context providers
├── hooks/ # Custom React hooks
│ ├── useAuth.tsx # Authentication hook
│ └── useSpot.tsx # Spot management hook
├── pages/ # Page components
│ ├── AuthPage.tsx # Login/signup
│ ├── DashboardPage.tsx # Main dashboard
│ ├── DrinksPage.tsx # Order management
│ ├── SpotPage.tsx # Spot details
│ └── BrowsePage.tsx # Browse spots
├── services/ # API and database services
│ └── database.ts # Supabase service layer
├── types/ # TypeScript type definitions
├── utils/ # Utility functions
└── lib/ # Library configurations
└── supabase.ts # Supabase client setup
A "Spot" represents a party, event, or gathering location. Users can:
- Create spots (become admin)
- Join existing spots via code
- Browse and order items within a spot
- User joins/creates a spot
- Browse available drinks, food, cigarettes
- Add items to order
- View personal bill
- Admin can see master bill with all orders
- Mark payments as complete
- Admin - Spot creator with full management access
- User - Regular participant who can order and view their bill
We welcome contributions! This project is participating in Apertre'26, a month-long open-source contribution event.
Please read our Contributing Guidelines before submitting a Pull Request.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Look for issues labeled good-first-issue or apertre3.0 to get started!
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with ❤️ by the BroCode team
- Thanks to all Apertre'26 contributors
- Powered by Supabase
⭐ Star this repo if you find it helpful!
Made with ❤️ by BroCode