BuyMyTix is a full-stack ticket marketplace where users can buy and sell event tickets — with confidence. Fast, secure, and optimized for last-minute finds or safe reselling.
- Frontend: React (TypeScript), Tailwind CSS
- Backend: Express.js (TypeScript)
- Database: MongoDB
- Cache: Redis
- Authentication: JWT + OTP (Resend API)
- Others: Google OAuth, WebSockets, React Query
- 🔐 OTP-based + Google authentication
- 🏟️ Discover and search events by title, club, nation, or player
- 🛒 Buy/Sell tickets with image uploads
- 📥 Ticket history + editing interface
- 🔄 Real-time sync with WebSockets
- 💬 Clean, responsive UI with motion/animation
- ⚙️ Admin panel for jersey management
- 📈 Production-ready setup (CORS, rate limits, token refresh)
git clone https://github.com/your-username/buymytix.git
cd buymytixCreate two .env files:
frontend/.envbackend/.env
Example contents:
# frontend/.env
VITE_BACKEND_URL=http://localhost:5000
# backend/.env
PORT=5000
MONGODB_URI=mongodb://localhost:27017/buymytix
JWT_SECRET=your_jwt_secret
REDIS_URL=redis://localhost:6379In two terminals:
# Terminal 1: Frontend
cd frontend
npm install
npm run dev# Terminal 2: Backend
cd backend
npm install
npm run devfrontend/ # React + Tailwind UI
backend/ # Express API
Pull requests are welcome. For major changes, please open an issue first.
Made by Sabarish and contributors.