Sign in
Log inSign up
Git board - A dashboard build using React in two days from scratch

Git board - A dashboard build using React in two days from scratch

Nikhil Karkra's photo
Nikhil Karkra
·Jan 20, 2020

Introduction

I always want to build an application that has a dashboard. I decided to start building the dashboard using the GitHub API. I started the project called git-board which is is a dashboard for the top 100 repositories based on GitHub Stars.

Final Design

  1. Home page

mainpage.PNG

  1. Dashboard page

screencapture-git-board-karkranikhil-now-sh-dashboard-facebook-react-2020-01-20-10_14_01.png

Technical approach

  1. Create the base app using create-react-app
  2. create two pages home page and dashboard page. The home page is the landing page that lists down the top 100 repositories. The dashboard page is the main page that shows the detailed view of the selected repository.
  3. First created a Header component that is different based on the route as shown below

  4. Home page header

head1.PNG

  • Dashboard page header

head2.PNG

4) Use the fetch API to fetch the data from the Github API 5) In home page list down the top 100 repositories in card format with their logo, name, and description as shown below

card.PNG

6) Build a search box for filtering out the repository as shown below

search.PNG

7) on click of the card, we are navigating to the dashboard page and passing down the selected repo owner name and name.

8) In the dashboard page, we have created the grid using the flexbox based on our design

9) I have used the canvasjs charting library for visualization. Based on the types of chart I have to build a component like BarChart, columnChart, etc.

10)In the dashboard page, I have used the multiple GitHub API using the promise.all. Based on the data render the respective chart.

11) The final output of the dashboard is similar to as shown below. screencapture-git-board-karkranikhil-now-sh-dashboard-facebook-react-2020-01-20-10_14_01.png

Demo Video

Resource

If you like my work please give a star as an appreciation on my GitHub repository.

Github - github.com/karkranikhil/git-board

App URL - git-board.karkranikhil.now.sh

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct