DEV Community

Vallabha Here
Vallabha Here

Posted on

Ticket Booking System for Movies using Go

Movie Theatre Ticket Booking System Using Golang with Payment Integration

Overview

This project is a Movie Theatre Ticket Booking System built using Golang with integrated payment functionality. Users can log in, sign up, view available theatres, book movie tickets, and make payments through the system.

Features

  • Login Route: Allows users to log in using their email and password. Passwords are securely hashed and stored in the database.
  • Sign-Up Route: Users can create an account with a username, email, and password. The password is securely hashed before being stored in the database.
  • All Theatres: Lists all the theatres that the user has created.
  • Add Theatre: Users can add a new theatre to the database.
  • Get Movie List by Theatre: Fetches all available movies for a specific theatre using its ID.
  • Add Movie: Users can add movies to a theatre.
  • Get Available Seats: Lists all available seats for a specific movie using its ID.
  • Lock Seat: This route locks the seat in the database after the user selects and pays for it. The payment is divided into two stages: seat selection and payment.
  • Verify Payment: Confirms payment for the selected seat and sends the seat details to the user.

Future Enhancements

  • Implement middlewares for enhanced security and functionality.
  • Fix the issue with seat timing (currently a bug).
  • Further improvements (e.g., integration of Redis for caching or other optimizations).

REPO : https://github.com/VallabhaE/TicketBookingSystem-GoLang

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay