A modern, full-stack MERN web application for booking premium 3D car driving simulator experiences.
- Features
- Tech Stack
- Quick Start
- Project Structure
- API Documentation
- Database Models
- Security
- Performance
- Deployment
- Contributing
- License
β Easy Booking System
- View available time slots in real-time
- Select preferred date, time, and duration
- Browse premium packages (Starter, Racer, Pro)
- Secure online payment processing
- Instant booking confirmation
- Manage bookings and cancellations
- Track booking history
- Update profile and settings
- Leave reviews and ratings
β Comprehensive Dashboard
- View all bookings with filtering
- Manage user accounts (block, delete)
- Approve/reject cancellation requests
- Manage schedules and availability
- Update pricing and discounts
- Review management and moderation
- Analytics and revenue tracking
- Notification alerts
β Advanced Technology
- Real-time slot availability
- Prevent double-booking system
- Secure JWT authentication
- Password hashing with bcrypt
- Role-based access control
- Responsive mobile design
- Dark gaming aesthetic
- Smooth animations
- Search engine optimized
βββββββββββββββββββββββββββββββββββββββ
β Next.js 14 (App Router) β
β TypeScript β
β Tailwind CSS + Shadcn UI β
β Framer Motion (Animations) β
β React Hook Form + Zod (Validation) β
β Axios (HTTP Client) β
βββββββββββββββββββββββββββββββββββββββ
# 1. Create Next.js app
npx create-next-app@latest the-plays-frontend \
--typescript \
--tailwind \
--app \
cd the-plays-frontend
# 2. Install additional dependencies
npm install framer-motion react-hook-form axios date-fns lucide-react
# 3. Create .env.local
cat > .env.local << 'EOF'
NEXT_PUBLIC_API_URL=http://localhost:5000/api
NEXT_PUBLIC_APP_URL=http://localhost:3000
EOF
# 4. Copy frontend files from the provided code
# (Copy all components, pages, styles, context, services)
# 5. Start development server
npm run dev# Terminal 1 - Backend (http://localhost:3000)
cd the-plays-frontend
npm run devVisit http://localhost:3000 in your browser!
the-plays/
βββ the-plays-frontend/
βββ src/
β βββ app/
β β βββ (public)/
β β β βββ page.tsx
β β β βββ about/
β β β βββ pricing/
β β β βββ contact/
β β βββ dashboard/
β β β βββ user/
β β β βββ admin/
β β βββ auth/
β β βββ login/
β β βββ register/
β βββ components/
β β βββ home/
β β βββ booking/
β β βββ dashboard/
β β βββ shared/
β β βββ ui/
β βββ context/
β β βββ AuthContext.tsx
β βββ styles/
β β βββ globals.css
β βββ hooks/
βββ package.json
| Package | Duration | Price | Features |
|---|---|---|---|
| Starter | 1 Hour | $15 | Basic simulator access, steering wheel, analytics |
| Street Racer | 2 Hours | $28 | +Multiplayer, advanced analytics, recording |
| Pro Driver | 4 Hours | $50 | +Priority booking, coach session, VIP lounge |
- Primary: Neon Cyan (#00ffff)
- Secondary: Purple (#a78bfa)
- Accent: Hot Pink (#ff006e)
- Dark: Slate 950 (#0a0a0a)
- Display: Clash Display
- Body: Space Mono
- Icons: Lucide React
- Glassmorphism cards
- Smooth animations (Framer Motion)
- Dark gaming theme
- Responsive grid layouts
β Mobile-first approach
- Mobile: 320px - 640px
- Tablet: 641px - 1024px
- Desktop: 1025px+
All pages and components tested on all screen sizes.
npm install -g vercel
vercel deployCopy .env.example to .env and fill in your values:
# Frontend
NEXT_PUBLIC_API_URL=https://your-backend.com/apiβ Frontend
- Image optimization with Next.js
- Code splitting and lazy loading
- CSS-in-JS optimization
- API call optimization
β General
- GZIP compression
- CDN ready
- SEO optimized
- Fast page load times
Contributions are welcome! Please follow:
- Fork the repository
- Create feature branch (
git checkout -b feature/AmazingFeature) - Commit changes (
git commit -m 'Add AmazingFeature') - Push to branch (
git push origin feature/AmazingFeature) - Open Pull Request
This project is PROPRIETARY and CONFIDENTIAL. Unauthorized copying, distribution, or modification is prohibited.
Built with β€οΈ by The Plays Development Team
For issues, questions, or feedback:
- Email: support@theplays.com
- Phone: +880 1234 567890
- Address: Dhaka, Bangladesh
- Live camera feed integration
- Leaderboard system
- Referral program
- Membership plans
- Real-time notifications (Socket.IO)
- AI racing assistant
- Mobile app (React Native)
- Advanced analytics dashboard
- Total Bookings: 1000+
- Happy Customers: 10000+
- Success Rate: 98%
- Average Rating: 4.9β
- Next.js team for amazing framework
- Tailwind CSS for utility styling
- MongoDB for reliable database
- Express.js for robust backend
Made with π for driving enthusiasts worldwide