Giter Club home page Giter Club logo

showbookingexam's Introduction

Booking a Show Program

This application is designed to facilitate the booking of show tickets, providing both a Spring-based web interface and a console for user interaction. The program utilizes Spring Boot and runs on a Tomcat server. It offers a dual interface, allowing users to interact with the application through a web interface and a console that runs on parallel.


How to Run

To run the program, execute the BookApplication class. This will start the Spring Boot application and launch the console. Users can choose between the roles of a buyer or an admin.

Admin Commands:

Setup: Configure a new show.****

setup [showId] [rowsAvailable] [columnsAvailable] [cancellationWindow]

Returns "Success" if successfully created, and an error if not.

View: View details of a specific show.

view [showId]

Returns the "show" and the details of the already booked for the show.

Exit: Exit admin mode.

Buyer Commands:

Availability: Check the availability of seats for a show.

availability [showId]

Returns a comma separated list of the available seats for the specific show.

Book: Reserve seats for a show.

book [showId] [phoneNumber] [seats,comma seperated]

Returns "Success" if it is successfully booked, otherwise an error will appear.

Cancel: Cancel a booking.

cancel [ticketId] [phoneNumber]

Returns "Success" if it is successfully cancelled. Note: Cancellation can only happen within the time frame given on the setup show command on admin.

Exit: Exit buyer mode.


To-do:

  • Create more tests that has 100% code coverage
  • Added a phone number regex checker
  • Code clean-up

showbookingexam's People

Contributors

timconejos avatar

Watchers

 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.