This project is a QR-based ticket booking system built with Next.js 14, MongoDB, Stripe, and NextAuth v5. It provides a secure platform for online ticket booking with integrated payment processing and user authentication. The system includes real-time QR code validation and turnstile (door) access control using a Raspberry PI-4B.
- Secure Ticket Booking: Users can book tickets online securely.
- Payment Processing: Integrated with Stripe for seamless payment transactions.
- User Authentication: Secure authentication and authorization using NextAuth v5.
- QR Code Validation: Real-time validation of QR codes for ticket verification.
- Access Control: Turnstile (door) access control implemented with Raspberry PI-4B.
- Next.js 14: Frontend framework for building the web application.
- MongoDB: Database for storing user and ticket information.
- Stripe: Payment processing platform.
- NextAuth v5: Authentication library for secure user login and management.
- Raspberry PI-4B: Hardware for turnstile access control.
To get started with the project, follow these steps:
Make sure you have the following installed on your system:
- Node.js
- npm or yarn
- MongoDB
- Raspberry PI-4B (for access control)
-
Clone the repository:
git clone https://github.com/MOHITH-2002/Qr-Tickets.git .
-
install and run through Docker: provide your .env credentials in /kubernetes/deployment-service.yml
docker build -t mohith9353/qr-ticket:latest . docker run -p 3000:3000 mohith9353/qr-ticket:latest
OR
-
Install dependencies:
npm install # or yarn install
-
Set up environment variables:
Create a
.env
file in the root directory and add your environment variables:NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=your-stripe-publishable-key STRIPE_SECRET_KEY=your-stripe-secret-key MONGODB_URI=your-mongodb-uri NEXTAUTH_URL=http:https://localhost:3000 NEXTAUTH_SECRET=your-nextauth-secret
Start the development server:
npm run dev
# or
yarn dev
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.