Giter VIP home page Giter VIP logo

brocc-ab-test's Introduction

Brocc Front-end Coding Exercise

Guidelines

  • You must use React, Styled-Components and React Query
  • We don't want you to spend more than a few hours on it

Exercise

We would like you to create 2 buttons that increments and decrements a counter. Then using the counter value we would like you to use the GitHub API to cycle through the array of repository names below :

[
  'eslint/eslint',
  'brocc-ab/test',
  'babel/babel',
  'webpack/webpack',
  'storybooks/storybook',
  'facebook/react',
  'tannerlinsley/react-query',
];

We would like you to display some data about the repositories. Use the counter as an index for the above array (eslint/eslint if the counter is 0, brocc-ab/test if it's 1, ...) and fetch information about the GitHub repository from GitHub's API: https://api.github.com/repos/{repositoryName}.

Display the following data and style it however you see fit:

  • full name (full_name)
  • description (description)
  • amount of stars (stargazers_count)

Handle and display any errors the API might throw, also think about any other potential problems and how you could prevent them.


Extra

Add a loading indication to the application: While new data is being fetched from the API, a loader should be displayed on the page.

It's enough to display a text such as "loading repository", but feel free to get creative!

brocc-ab-test's People

Contributors

mansmahamat avatar

Watchers

James Cloos 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.