Coder Social home page Coder Social logo

uksamarth / qr-tickets Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mohith-2002/qr-tickets

0.0 0.0 0.0 593 KB

QR-based ticket booking system using Next.js 14, MongoDB, Stripe, and NextAuth v5. It provides a secure platform for online ticket booking with integrated payment processing via Stripe and user authentication with NextAuth v5. The system also includes real-time QR code validation and turnstile (door) access control using Raspberry PI-4B.

Home Page: https://www.qrtickets.software

JavaScript 0.13% TypeScript 98.29% CSS 1.27% Dockerfile 0.31%

qr-tickets's Introduction

QR-based Ticket Booking System

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.

Features

  • 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.

Tech Stack

  • 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.

Getting Started

To get started with the project, follow these steps:

Prerequisites

Make sure you have the following installed on your system:

  • Node.js
  • npm or yarn
  • MongoDB
  • Raspberry PI-4B (for access control)

Installation

  1. Clone the repository:

    git clone https://github.com/MOHITH-2002/Qr-Tickets.git .
    
  2. 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

  3. Install dependencies:

    npm install
    # or
    yarn install
  4. 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://localhost:3000
    NEXTAUTH_SECRET=your-nextauth-secret

Running the Development Server

Start the development server:

npm run dev
# or
yarn dev

Deploy on Vercel

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.

qr-tickets's People

Contributors

mohith-2002 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.