A simple React application to explore GitHub user profiles and statistics using the GitHub API.
visit the react-app: git-dashboard
- 🔍 Search GitHub users by username
- 📊 View user statistics (followers, following, repositories)
- 🖼️ Display user profile information including bio and social links
- 📅 Show account creation date
- 🌐 Responsive design for all screen sizes
- Node.js (v16 or higher)
- npm (v9 or higher)
-
Clone the repository:
git clone https://github.com/your-username/github-user-dashboard.git
-
Navigate to the project directory:
cd github-user-dashboard -
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and visit:
http://localhost:5173
- Enter a GitHub username in the search bar.
- Click the "Search" button to:
- View profile picture and basic information
- See account statistics (followers, following, repositories)
- Check social media links (if available)
- Read the user bio (if provided)
- See account creation date
- React: JavaScript library for building user interfaces
- Vite: Quick development build tool
- GitHub API: For fetching user data
- CSS: Styling and layout
github-user-dashboard/
├── public/ # Static assets and images
│ ├── components/ # React components (e.g., UserProfile.jsx)
│ ├── App.jsx # Main application logic
│ ├── App.css # Main stylesheet
│ └── main.jsx # Application entry point
├── package.json # Project dependencies and scripts
└── README.md # Project documentation
This project helped me learn:
- React basics, including component architecture, JSX, and props
- React state management with
useState - API fetching using async/await
- Component-based application design and reusability
- Error handling during API calls
- Responsive CSS styling and layout
- Integrating with the GitHub API to retrieve data
- Display user repositories with clickable links.
- Add dark/light theme toggle.
- Implement search history.
- Enhance loading animations.
