Skip to content

codebyjass/ticket-booking

Repository files navigation

Ticket Booking System

A simple event ticket booking system built with Ruby on Rails. This application allows users to create events, book tickets, and handle concurrency issues during ticket booking.


Live Demo:

https://ticket-booking-wogf.onrender.com/

Features

  • User Authentication: Users can register, log in, and log out using Devise.
  • Event Management:
    • Create events with details like name, description, location, date, and total tickets available.
    • View a list of all events.
  • Ticket Booking:
    • Book tickets for events while ensuring no overselling using optimistic locking.
    • Concurrency handling with retries for conflict resolution.
  • Pagination: Paginated views for events and tickets.
  • Error Handling: Friendly error messages for ticket booking conflicts.

Setup Instructions

1. Clone the Repository

https://github.com/jaspreet-3911/ticket-booking.git

2. Install Dependencies

bundle install

3. Set Up the Database

rails db:create
rails db:migrate

4. Start the Server

rails server

5. Access the Application

http://localhost:3000

5. Testing

bundle exec rspec

About

A simple event ticket booking system built with Ruby on Rails. This application allows users to create events, book tickets, and handle concurrency issues during ticket booking.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors