Giter VIP home page Giter VIP logo

tennis-courts-challenge's Introduction

Tennis Courts - Challenge

Introduction

You have been tasked to fix some misimplementations of a backend API for a simple reservation platform for tennis players. Using this platform, users can book reservations on a variety of tennis courts that are registered on it.

This code is already developed in https://github.com/ermathias/tennis-courts-challenge - Clone it, open a feature branch.

The actual code has the below user stories already implemented. You should complete at least one of the bold ones to be able to attend the interview. In case you are comfortable to complete other ones it will count in your evaluation.

1. As a User I want to be able to book a reservation for one or more tennis court at a given date schedule

  1. As a User I want to be able to see what time slots are free
  2. As a User I want to be able to cancel a reservation
  3. As a User I want to be able to reschedule a reservation

5. As a Tennis Court Admin, I want to be able to Create/Update/Delete/Find by id/Find by name/List all the guests

  1. As a Tennis Court Admin, I want to be able to create schedule slots for a given tennis court

7. As a Tennis Court Admin, I want to charge a reservation deposit of $10 to the user, charged per court, which is refunded upon completion of their match, so that Users don’t abuse my schedule

  1. As a Tennis Court Admin, I want to refund the reservation deposit if the user has cancelled or rescheduled their reservation more than 24 hours in advance

9. As a Tennis Court Admin, I want to keep 25% of the reservation fee if the User cancels or reschedules between 12:00 and 23:59 hours in advance, 50% between 2:00 and 11:59 in advance, and 75% between 0:01 and 2:00 in advance

  1. As a Tennis Court Admin, I want to keep 100% of the reservation deposit if the User does not show up for their reservation
  2. As a Tennis Court Admin, I want to be able to see a history of my past reservations so that I can use the information to improve the management of my establishment

Technical requirements

- Implement all the missing Restful swagger statements and the API paths to the controllers

- Check why rescheduleReservation in the class ReservationService.java is not working correctly and fix it

Assumptions

● No authentication/authorization system is required

● Guests will always play for 1 hour - no more, and no less

Constraints

  1. Ensure the code is well tested

Deliverables and Closing Note

To deliver your solution all you have to do is to CLONE this repository into a new repository in your own GitHub account. If you create it as a public repository, you are done. If you create it as a private repository, please make sure to grant the technical interviewers GitHub users access to it.

Good Luck and happy coding!

tennis-courts-challenge's People

Contributors

ermathias avatar

Watchers

James Cloos 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.