Skip to content

jiaah/Beer-Web-App

Repository files navigation

Beer-Web-App

Table of Contents

Project

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.

API

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.

Technologies

Next.js, TypeScript, Styled-Components, Grommet, Storybook

Features

Imgur

Imgur

LogIn/ SignUp

Api POST request

List of beers in Home.js

Api GET request -> data.map -> pass data to <beercard.js>

List of beers Sorted by abv > 4% or abv < 4%

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 beer bar by beer name or food

Search Text input -> Api GET request(query) -> data.map -> pass data to <beercard.js>

Add to Favorite/Shopping cart Page

Api PATCH request 
default value  0: false
               1: true

Shopping Cart

Quantity :

default value  1
Button Click -> Api PATCH request -> Get new QYT & Price & Total Price from server 

Delete :

Api DELETE request