Skip to content

About

⚡ GitHub Profile Viewer built with React and GitHub API to explore developer profiles, repositories, followers, and stats.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

🔍 GitHub Profile Analyzer

A full-stack web application that analyzes and displays GitHub profile information using React.js on the frontend and FastAPI on the backend.

🖼️ Demo Picture

Image

🚀 Live Demo

👉 Open GitHub Profile Analyzer

💻 GitHub Repository

👉 View Source Code


📌 About the Project

GitHub Profile Analyzer allows users to enter a GitHub username and explore important information about that GitHub profile through a clean and responsive dashboard.

The frontend is built with React.js, while FastAPI handles the backend API and communication with the GitHub API.

The project was also deployed separately:

  • 🎨 Frontend → Vercel
  • ⚡ Backend → Render

✨ Features

  • 🔎 Search GitHub users by username
  • 👤 Display GitHub profile information
  • 🖼️ Display profile avatar
  • 👥 Followers and following information
  • 📦 Repository information
  • 💻 Programming language statistics
  • 🔗 Direct GitHub profile access
  • 📱 Responsive UI
  • ⚡ React frontend with FastAPI backend
  • 🌐 Production deployment

🛠️ Tech Stack

Frontend

  • React.js
  • JavaScript
  • Vite
  • React Router
  • Axios / Fetch API
  • CSS

Backend

  • Python
  • FastAPI
  • Pydantic
  • GitHub API
  • CORS Middleware

Deployment

  • Vercel — Frontend
  • Render — Backend

🏗️ Project Structure

github_profile_analyzer/
│
├── backend/
│   ├── main.py
│   ├── ...
│   └── requirements.txt
│
├── frontend/
│   ├── src/
│   │   ├── components/
│   │   ├── pages/
│   │   ├── api/
│   │   └── ...
│   │
│   ├── public/
│   ├── package.json
│   └── vite.config.js
│
└── README.md

🔄 How It Works

User enters GitHub username
            ↓
       React.js
            ↓
      FastAPI Backend
            ↓
        GitHub API
            ↓
     GitHub User Data
            ↓
       React Dashboard

🧠 Development Challenges

This project was not just about building the UI and API. I also faced several real-world development and deployment problems.

1. CORS Issues

The application worked correctly during local development, but after deploying the frontend and backend separately, browser requests were blocked because of CORS.

I had to configure FastAPI's CORSMiddleware to allow requests from the deployed Vercel frontend.

app.add_middleware(
    CORSMiddleware,
    allow_origins=[
        "https://github-profile-analyzer-five-pied.vercel.app"
    ],
    allow_credentials=False,
    allow_methods=["*"],
    allow_headers=["*"],
)

This helped me understand the difference between local development origins and production origins.


2. React Router + Vercel 404

Another interesting problem appeared after deployment.

Navigation to:

/profile

worked normally inside the application.

However, refreshing the /profile page produced:

404: NOT_FOUND

The reason was that React Router handles /profile on the client side, while Vercel initially tried to find /profile as a server-side resource.

This taught me about SPA routing and server-side rewrites.


3. useLocation() State and Page Refresh

Initially, profile information was passed using React Router's navigation state.

navigate('/profile', {
    state: user
})

This worked during navigation, but the state could disappear after a full page refresh.

The better approach is to use a dynamic route:

/profile/:username

and retrieve the username using:

const { username } = useParams()

The application can then fetch the profile data again from the backend.

This makes the profile URL more reliable and shareable.


4. Git and Deployment Problems

During development, I also encountered several Git and deployment-related problems, including:

  • Incorrect file paths while using git add
  • Uncommitted changes
  • Pull/rebase issues
  • Keeping local and remote branches synchronized
  • Backend deployment configuration
  • Frontend/backend production URL configuration

These problems helped me understand that deployment is a major part of full-stack development, not just an afterthought.


📚 What I Learned

Through this project, I gained practical experience with:

  • React.js
  • React Router
  • Dynamic routes
  • useParams()
  • React state management
  • FastAPI
  • REST APIs
  • GitHub API integration
  • CORS
  • Frontend ↔ Backend communication
  • Error handling
  • Vercel deployment
  • Render deployment
  • Git and GitHub workflows
  • Debugging production issues

🚀 Future Improvements

Some features I would like to add in future versions:

  • 📊 More advanced GitHub analytics
  • 📈 Contribution graph analysis
  • ⭐ Repository popularity analysis
  • 🏆 GitHub achievement/metrics section
  • 📉 Repository activity charts
  • 🔥 Most-used technologies
  • 📅 Contribution activity timeline
  • 🤖 AI-powered profile analysis
  • 📄 Export profile analysis as PDF
  • 🔐 GitHub OAuth authentication
  • ⚡ Better caching and API performance

🎯 Purpose

I built this project to improve my practical understanding of full-stack development with React.js and FastAPI.

More importantly, I wanted to experience the complete development lifecycle:

Planning
   ↓
Development
   ↓
API Integration
   ↓
Frontend Integration
   ↓
Debugging
   ↓
Git/GitHub
   ↓
Deployment
   ↓
Production Debugging

The bugs I encountered during deployment were actually some of the most valuable parts of the project because they forced me to understand how the application works beyond the local development environment.


🌐 Links

Resource Link
🚀 Live Application GitHub Profile Analyzer
💻 Source Code GitHub Repository

⭐ Feedback

If you find this project useful or have suggestions for improvement, feel free to check out the repository and share your feedback.

Built with React.js + FastAPI + GitHub API 🚀

About

⚡ GitHub Profile Viewer built with React and GitHub API to explore developer profiles, repositories, followers, and stats.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages