https://github-profile-analyzer-12et.onrender.com
https://github-profile-analyzer-12et.onrender.com/api/github/analyze/octocat
GitHub Profile Analyzer is a Node.js and Express-based REST API that fetches GitHub user information, analyzes repository data, and stores profile insights in MySQL.
- Analyze GitHub profiles
- Calculate total repository stars
- Identify most used programming language
- Calculate developer score
- Store analyzed profiles in MySQL
- Retrieve all stored profiles
- Retrieve a specific profile
- Delete profiles
- Node.js
- Express.js
- MySQL
- Axios
- dotenv
- Nodemon
git clone <your-github-repo-url>
cd github-profile-analyzernpm installCreate a .env file:
PORT=5000
DB_HOST=localhost
DB_USER=root
DB_PASSWORD=yourpassword
DB_NAME=github_analyzernpm run devGET /api/github/analyze/:username
Example:
GET /api/github/analyze/torvalds
GET /api/github/profiles
GET /api/github/profiles/:username
Example:
GET /api/github/profiles/torvalds
DELETE /api/github/profiles/:username
Example:
DELETE /api/github/profiles/torvalds
{
"message": "Profile Stored Successfully",
"username": "torvalds",
"totalStars": 247775,
"mostUsedLanguage": "C",
"developerScore": 859463
}