Giter VIP home page Giter VIP logo

matthewnobes / github-cards Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.43 MB

This project was created as part of my React learning from a course on Pluralsight. It is a simple React application that collects information about GitHub users from a typed in username. It relies on axios to communicate with the GitHub API by sending it a request for user information.

Home Page: https://matthewnobes.github.io/github-cards/

HTML 27.03% CSS 14.25% JavaScript 58.71%
react reactjs js javasc webdevelopment nodejs classcomponents functioncomponents training github

github-cards's Introduction

GitHub Cards

This project was created as part of my React learning from a course on Pluralsight. It is a simple React application that collects information about GitHub users from a typed in username. It relies on axios to communicate with the GitHub API by sending it a request for user information.

My plan is to upgrade the code built in the course so I can demonstrate my React refactoring skills. I also plan to add error handling and jest testing.

Class Component Branch

The class component branch plays host to the class component version of GitHub cards, used mainly as a reference for how this method of React works.

Master branch

This branch will be converted to use function components instead, as this is the more modern form of React and refactoring it will be good practice.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

This is used to run the automated tests built into this program. Jest has been included to generate and manage these tests.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

npm run deploy

Used to deploy a build of the application to the gh-pages branch, the branch connected to GitHub pages, the hosting tool for this application. The live web-app can be viewed here matthewnobes.github.io/github-cards/

github-cards's People

Contributors

matthewnobes avatar

Watchers

 avatar  avatar

github-cards's Issues

Rewrite function component version

Rewrite this application to use function components as opposed to its current class component version. During this, it will also need to be refactored into different files and directories.

Add jest tests

Add jest tests for the request functions and the testing of the UI components.

Add view profile button

Add a view profile button to each profile, which when clicked will open the profile into a new tab.

Fix styling issue

When a profile is loaded in, the name and organisation are printed at the bottom of the profile image, it would look better if they were printed at the top.

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.