A multiplayer business simulation game where you build companies, create products, trade stocks, and compete for wealth.
QuickBuck is a realistic business simulator combining company management, stock trading, product marketplaces, and strategic competition. Build your empire from the ground up!
- 🏢 Create Companies - Build and manage multiple businesses
- 📦 Product Development - Design and price products strategically
- 💼 Financial Management - Track revenue, costs, and profits
- 📊 Analytics Dashboard - Real-time business metrics
- 📈 Public Trading - IPO when company reaches $50K
- � Dynamic Pricing - Supply and demand-based pricing
- 🤝 Shareholder Dividends - Distribute profits to investors
- 📉 Portfolio Management - Diversify investments
- � Product Marketplace - Buy products from other companies
- 🎨 Collection System - Build valuable product portfolios
- � Asset Appreciation - Track collection value over time
- 🎰 Slot Machines - Test your luck with various payouts
- � Blackjack - Strategic card game with 50/50 fairness
- 🎲 Roulette - Bet on colors or numbers
- 🏆 Global Leaderboards - Compete for top net worth
- 👥 Multiplayer Economy - Interact with other players
- 🎯 Strategic Competition - Multiple paths to success
New to QuickBuck? Start here:
- � Quick Start Guide - Get running in 10 minutes
- � Player Guide - Complete game features & strategies
- 🎯 Advanced Strategies - Master-level tactics
- ⚙️ Game Mechanics - Technical reference
See the full documentation: docs/README.md
- React Router v7 - Full-stack React framework
- TailwindCSS v4 - Utility-first CSS framework
- shadcn/ui - Modern component library with Radix UI
- Lucide React & Tabler Icons - Beautiful icon libraries
- Recharts - Data visualization
- Motion - Smooth animations
- Convex - Real-time database and serverless functions
- Clerk - Authentication and user management
- OpenAI - AI chat capabilities
- Vite - Fast build tool
- TypeScript - Type safety
- Vercel - Deployment platform
- Node.js 18+
- Clerk account for authentication
- Convex account for database
- OpenAI API key (for AI chat features)
- Clone the repository and install dependencies:
npm install- Copy the environment file and configure your credentials:
cp .env.example .env.local- Set up your environment variables in
.env.local:
# Convex Configuration
CONVEX_DEPLOYMENT=your_convex_deployment_here
VITE_CONVEX_URL=your_convex_url_here
# Clerk Authentication
VITE_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key_here
CLERK_SECRET_KEY=your_clerk_secret_key_here
# OpenAI Configuration (for AI chat)
OPENAI_API_KEY=your_openai_api_key_here
# Frontend URL for redirects
FRONTEND_URL=http://localhost:5173- Initialize Convex:
npx convex devStart the development server with HMR:
npm run devYour application will be available at http://localhost:5173.
Create a production build:
npm run buildThis starter kit is optimized for Vercel deployment with the @vercel/react-router preset:
- Connect your repository to Vercel
- Set environment variables in Vercel dashboard
- Deploy automatically on push to main branch
The react-router.config.ts includes the Vercel preset for seamless deployment.
To build and run using Docker:
docker build -t my-app .
# Run the container
docker run -p 3000:3000 my-appThe containerized application can be deployed to any platform that supports Docker:
- AWS ECS
- Google Cloud Run
- Azure Container Apps
- Digital Ocean App Platform
- Fly.io
- Railway
If you're familiar with deploying Node applications, the built-in app server is production-ready.
Make sure to deploy the output of npm run build
├── package.json
├── package-lock.json
├── build/
│ ├── client/ # Static assets
│ └── server/ # Server-side code
/- Homepage/dashboard- Protected user dashboard/dashboard/chat- AI-powered chat interface/dashboard/settings- User settings
- Protected routes with Clerk authentication
- Server-side user data loading with loaders
- Automatic user synchronization
- Interactive sidebar navigation
- Real-time data updates
- User profile management
- AI chat functionality
- OpenAI-powered conversations
- Real-time message streaming
- Chat history persistence
- Responsive chat interface
CONVEX_DEPLOYMENT- Your Convex deployment URLVITE_CONVEX_URL- Your Convex client URLVITE_CLERK_PUBLISHABLE_KEY- Clerk publishable keyCLERK_SECRET_KEY- Clerk secret keyOPENAI_API_KEY- OpenAI API key for chat featuresFRONTEND_URL- Your production frontend URL
├── app/
│ ├── components/ # Reusable UI components
│ │ ├── ui/ # shadcn/ui components
│ │ ├── homepage/ # Homepage sections
│ │ └── dashboard/ # Dashboard components
│ ├── routes/ # React Router routes
│ └── utils/ # Utility functions
├── convex/ # Convex backend functions
├── public/ # Static assets
└── docs/ # Documentation
react&react-domv19 - Latest Reactreact-routerv7 - Full-stack React framework@clerk/react-router- Authenticationconvex- Real-time database@ai-sdk/openai&ai- AI chat capabilities@vercel/react-router- Vercel deploymenttailwindcssv4 - Styling@radix-ui/*- UI primitives
npm run dev- Start development servernpm run build- Build for productionnpm run start- Start production servernpm run typecheck- Run TypeScript checks
QuickBuck has been extensively optimized for production, achieving 92-93% database bandwidth reduction:
- Before: ~1,500 MB/day (Critical risk
⚠️ ) - After: ~100-120 MB/day (Healthy ✅)
- Query Speed: 70% faster on average
- Cost Savings: ~$250/year in database costs
- 📊 Executive Summary - Quick overview
- 📖 Complete Guide - All phases
- ⚡ Quick Reference - Best practices
- 📈 Monitoring Checklist - Health tracking
- ✅ Cached account balances
- ✅ Batch operations with Promise.all
- ✅ Indexed queries
- ✅ Limited result sets
- ✅ Time-bound historical queries
- Fork the repository
- Create your feature branch
- Commit your changes
- Follow optimization best practices
- Push to the branch
- Open a Pull Request
This project is licensed under the MIT License.
Stop rebuilding the same foundation over and over. RSK eliminates months of integration work by providing a complete, production-ready SaaS template with authentication, AI chat, and real-time data working seamlessly out of the box.
Built with ❤️ using React Router v7, Convex, Clerk, and OpenAI.
Optimized for scale 🚀 | 92% bandwidth reduction achieved ⚡