Thirst App is an awesome application that from a few input parameters (drink type and amount of money) is capable to order a drink, to quench your thirst, and show a cool message for the desired drink.
HOW IT WORKS
This app is based in two components:
This API is the core of the app. It contains the business logic of the application and, giving some parameters, returns the desired drink, or an error if something is wrong. Also, is in charge of storing the data to calculate the benefits of the application.
This is a simple React page where the user enters the parameters (drink and money) and see what the application returns. The page does not validate anything more than the input type, sending the data directly to the API and showing the message to the user.
APPLICATION BUSINESS LOGIC
So, this app is a common vending machine where the user will have to insert money and select the type of drink they want, and it will return that beverage in case you insert the enough money and select an available drink type. Easy peasy :)
So, the application will have to accept any of those values and return some error messages once any of them are not correct. The user should receive feedback about their action and see if the beverage is on hold, or the command was failed.
The owner of the business wants to know how much money she earns. So, the application should have a way to show how much money do it earn with all the transactions. So, every time a user buy some product, the application will have to store the amount to show it later.
You would have to take some decisions during the Challenge, so here you could find some tips from our side:
HOW IT WORKS
WHAT WILL YOU GET
ABOUT THE CREATOR
Mauro Gómez is the CTO and Co-Founder of Rviewer. Software Engineer with more than 7 years of experience both as a developer and as a researcher in the field.
He has done research in prominent places such as the Barcelona Supercomputing Center, and worked in leading companies such as Adsmurai, as Team Lead and Big Data Developer, or Sabentis, evolving its SaaS platform.
Start now this Thirst App challenge
Ready to challenge yourself and build something you're proud of?