Skip to content

newelle-dev/devfinder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevFinder

Discover GitHub users with a clean, fast React + Vite app. Search by username, view profile details, and jump to followers, following, and repositories.

Features

  • GitHub user search with loading and error states
  • Profile card: avatar, name, username, bio, location
  • Quick links: followers, following, repositories
  • Copy-to-clipboard for username and email
  • Dark/light theme toggle (persisted in localStorage)
  • Responsive UI built with Tailwind CSS v4
  • Client-side routing with a shared layout

Tech Stack

  • React 19 + Vite 7
  • React Router 7
  • Tailwind CSS v4 (@tailwindcss/vite)
  • Axios
  • Lucide Icons

Project Structure

.env.local
.gitignore
eslint.config.js
index.html
package.json
vite.config.js
public/
src/
  App.jsx
  index.css
  main.jsx
  components/
    common/ThemeToggle.jsx
    layout/{Footer.jsx,Layout.jsx,NavBar.jsx}
    search/SearchForm.jsx
    ui/{Button.jsx,Card.jsx,Spinner.jsx}
    user/{UserProfileCard.jsx,UserSocialLinks.jsx,UserStats.jsx}
  hooks/useGithubUser.js
  pages/{HomePage.jsx,NotFound.jsx,SavedProfilesPage.jsx,SavedSearchesPage.jsx,SearchPage.jsx,SettingsPage.jsx}
  services/github.js
  utils/api.js

Getting Started

Prerequisites:

  • Node.js 18+ and npm

Install and run:

npm install
npm run dev

Build and preview:

npm run build
npm run preview

Environment Variables

Create a .env.local in the project root:

VITE_GITHUB_TOKEN=your_github_token_here   # optional but recommended

Notes:

  • Unauthenticated GitHub API calls are rate-limited. Supplying a token increases limits.
  • The token is sent as a bearer token in GithubService.getUser.

Available Scripts

  • npm run dev — start dev server
  • npm run build — production build
  • npm run preview — preview production build
  • npm run lint — run ESLint

Key Files

Notes

  • External links open in new tabs where applicable.
  • The path alias @ resolves to src/ as configured in vite.config.js.

License

MIT

About

A sleek React + Vite app to search GitHub users and explore their profiles with dark/light mode, responsive UI, and repository stats.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors