E-commerce Web Site for Beer Lovers!! You can search beers with an abv(Alcohol by volume) of more than 4% and find beer that pairs with food. It will help users to choose right beers that suit for their personal taste and the menu of the day.
The Punk API takes Brewdog's DIY Dog (A craft beer company from Scotland) and turns it into a searchable, filterable API that's completely free and open source.
Next.js, TypeScript, Styled-Components, Grommet, Storybook
Api POST request
Api GET request -> data.map -> pass data to <beercard.js>
Api GET request
.then(data => {
var strongBeers = data.filter(beer => {
return beer.abv > 4%;
})
})
strongBeers.map -> pass data to <beercard.js> -> List of beer (> 4%)
Search Text input ->
Api GET request(query) -> data.map -> pass data to <beercard.js>
Api PATCH request
default value 0: false
1: true
Quantity :
default value 1
Button Click -> Api PATCH request -> Get new QYT & Price & Total Price from server
Delete :
Api DELETE request