Giter Club home page Giter Club logo

w4d7_beerpunkapi's Introduction

w4d7_beerPunkAPI

Partner up with two other developers. This is a hackathon and you need to get going. Create a repo you can push your work to. Create a new project using the Angular CLI toolbox to do so. We'll be fetching beer info from this API so go ahead and generate a beer component and a service. Use the git init command to initialize your local directory. git remote add origin <your repo's url> git add, commit, push Make sure everything went up and have your partners clone it. Do not use the HttpClient directly in your component. Make an Api and Beer service. Import and register the HttpClientModule module in app.module Import the HttpClientinto your service Then create a get method using HttpClient that uses this url https://api.punkapi.com/v2/beers Note 1: note the follow-up video Note 2: refer to the practice problem last night for knowing the syntax of a get method. Node 3: Remember async/await

Use Material, so install and import it. Display the data in a Material table Note: this was covered last week.

Your app component template should just contain a tag that contains the beer component. For example and in your beer component it should look something like this:

Component({ selector: 'beer-component', templateUrl: './beercomponent.component.html', styleUrls: ['./beercomponent.component.css'] }) Console log the data your fetching or use Postman to to see what you're getting back.

Create a structure to display the image, title, abv, etc... Create a button that will fetch a new beer if the user clicks it. Push Yourself Further Create a header that is on all of your pages. Display 3 beers at a time, how about 6, 12 What if the user could choose the number they wanted to fetch and the app then change the number. Add a search feature. *You'll have to look at the punkAPI documentation for this.

w4d7_beerpunkapi's People

Contributors

herb1691 avatar

Watchers

 avatar  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.