Skip to content

nicholasmendoza140/starbucks-springboot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMPE 172 Project Journal

Project Architecture

Blank diagram

Creating the Cashier App

Creating the cashier app required creating a model of the Orders, buttons in the view that would trigger an action value to make REST API calls, and the actual API calls themselves. I added in-store drink selection through the use of dropdown menus for the drink, milk, and size options. These selected values would then be set in the "NEW ORDER" call and would create a new order with these customizations. I also implemented a "CLEAR ORDER" call that would clear orders that have not been paid for on the register in the case that a cashier may have messed up an order.

Cashier App Interface

Initially, I had drink selection and customization on the same page with drop-down menus, but I add more pages to make it more intuitive and visually-appealing. The landing page for the cashier app is just the console and a button to select the drinks and a button to clear the order.

Screen Shot 2022-05-18 at 6 11 24 PM

Displayed here are the drinks with pictures and their names.

Screen Shot 2022-05-18 at 6 11 31 PM

Upon clicking one of the drinks, the milk and size options can be customized with a button to place the order.

Screen Shot 2022-05-18 at 6 11 40 PM

Screen Shot 2022-05-20 at 9 50 44 AM

Cashier App and Starbucks API Deployed to GCP

Kong API Gateway also used in deployment. We can see the API key configured below.

Screen Shot 2022-05-18 at 11 23 38 PM

External load balancer for cashier app and internal load balancer for API.

Screen Shot 2022-05-20 at 6 04 08 PM

CLOUD SQL Connection to API

Screen Shot 2022-05-18 at 10 13 35 PM

Kong API Key Implementation

The Kong API Key is stored in the application.properties file and was then added as a header in the API calls.

Screen Shot 2022-05-20 at 10 03 22 AM

Screen Shot 2022-05-20 at 10 03 28 AM

Challenges

The most challenging part of this project was most likely porting the cashier app to a Spring MVC application. That required front end work and learning how to implement the API calls. This was very difficult, but I used Professor Nguyen's Starbucks Client for reference on how to make RESTful API calls.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published