GithubHelp home page GithubHelp logo

uzairurk / github-finder-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bradtraversy/github-finder-app

1.0 0.0 0.0 2.67 MB

Find github users and display their info

Home Page: github-finder-app-sage.vercel.app

Shell 0.37% JavaScript 91.62% CSS 0.64% HTML 7.37%

github-finder-app's Introduction

Github Finder App

App to search Github users and display their info. This is part of my React Front To Back 2022 course and is the most up to date version of this project.


Bug Fixes, corrections and code FAQ

The repository code here on the main branch has been updated due to bugs and issues found by students since the course was released. If you are looking for exact code from the course then please check out the originalcoursecode branch of this repository.

The updates here aim to be a reference and resource for common questions asked by students in the Udemy Q&A and for those wishing to make corrections to the project.

Q: How do I remove the user stats scroll bars that show on mobile devices

Code changes for this fix can be seen in User.jsx

BUG: I can't see the alert text

Most likely you have the default light theme provided by DaisyUI. The theme is set based on a prefers-colorscheme media query, so you may have a light theme if you have a light browser theme or OS theme. In which case you won't see the text in the alert show. Code changes to fix this can be seen in Alert.jsx The changes here use a DaisyUI Alert component so will adapt with a change in theme. We also now conditionally set the element visibility to 'visible' or 'hidden' rather than conditionally render, which prevents content shift when the alert shows for a smoother UX.

Q: Why doesn't Craco work?

You don't need to use craco if you are using react-scripts version 5 or greater.

When Brad recorded the course react-scripts was at version 4 and didn't support postcss, now react-scripts is at version 5 and does support postcss. So just check what version of react-scripts you have...

npm list react-scripts

If it's at version 5 or greater then follow the Tailwind version 3 docs to setup.

If react-scripts is at version 4 then follow the Tailwind version 2 docs to setup, which is what you see Brad doing in the course.

BUG: Linking to users websites

Some users from Github have already prefixed their websites with http:// or https:// so we need to check in User.jsx if their website url starts with http before constructing the external link. Code changes can be see in User.jsx

BUG: Light theme RepoItem background is too dark

The theme is set based on a prefers-colorscheme media query, so you may have a light theme if you have a light browser theme or OS theme. When the browser's preferred color scheme is light, the gray background is too dark on the RepoItem component, and the content is not visible.

Using base-200 and base-300 backgrounds, will make the component's background change according to the browser's preference.

Code changes can be seen in RepoItem.jsx


Usage

Rename .env.example to .env

You can use the Github API without a personal token, but if you want to use your token, add it to the .env file

Learn how to create a token here

Install Dependencies

npm install

Run

npm start

Tailwind UI created by Hassib Moddasser

github-finder-app's People

Contributors

bradtraversy avatar bushblade avatar arpadgbondor avatar matthosch avatar saidmounaim avatar

Stargazers

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