A backend service that analyzes GitHub user profiles and stores insights in a MySQL database.
https://github-analyzer-py89.onrender.com/
https://github.com/niteshkumar9631/github-analyzer.git
- Node.js
- Express.js
- MySQL
- GitHub Public API
- Fetch public profile data from GitHub using username
- Store insights like public repositories, followers, following, stars, and most used language
- REST APIs to analyze and retrieve profiles
- MySQL database integration
- Deployed on Render
git clone https://github.com/niteshkumar9631/github-analyzer.git
cd github-analyzernpm installCreate a .env file in the root folder:
PORT=3000
DB_HOST=localhost
DB_USER=root
DB_PASSWORD=your_mysql_password
DB_NAME=github_analyzer
GITHUB_TOKEN=your_github_tokenLogin to MySQL and run:
mysql -u root -p < schema.sqlnpm run dev| Method | Endpoint | Description |
|---|---|---|
| POST | /api/analyze/:username |
Fetch and store GitHub profile |
| GET | /api/profiles |
Get all analyzed profiles |
| GET | /api/profiles/:username |
Get a single profile |
POST http://localhost:3000/api/analyze/niteshkumar9631
GET http://localhost:3000/api/niteshkumar9631
GET http://localhost:3000/api/profiles/niteshkumar9631
Nitesh Kumar