GithubHelp home page GithubHelp logo

ivillamil / github-topic-explorer Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 94 KB

Github topic explorer exercise with github's graphql api and React

HTML 4.50% JavaScript 73.25% CSS 21.83% Shell 0.42%

github-topic-explorer's Introduction

GITHUB TOPIC EXPLORER

React application that shows github related topics of an expecified topic and its stargazers.

It uses Github GraphQL API to list Topics Objects and its Stargazers count

Tech notes

This application uses vite as the tool for bundling and running because its smaller and faster than other options like Create React App. For more details see Why vite.

Dependencies

  • Apollo client for graphql and react integration.
  • Jest and react-testing-library for unit testing.

Hot to run the app

  • Download the app
git clone https://github.com/ivillamil/github-topic-explorer
  • To interact with the Github GraphQL API you'll need to have a Github Personal Access Token
  • Once you have your token, paste it in the .env file:
VITE_GITHUB_TOKEN=<your_token_here>
  • To download all module dependencies and run the app, run the following command in the root project folder:

yarn

yarn
yarn dev

or

npm

npm install
npm run dev

How to test the app

  • without coverage: npm test or yarn test
  • with test coverage: npm run coverage or yarn run coverage

Possible Further improvements

  • Add unit tests for App component
  • Add browser navigation to allow users to go backwards on search history

github-topic-explorer's People

Contributors

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