This project is a Node.js application that fetches and displays GitHub user statistics using the GitHub API.
- Fetches user data from GitHub
- Calculates user rating based on various metrics
- Displays user statistics in an SVG format
- Node.js
- npm
- Clone the repository:
git clone https://github.com/ilhamridho04/github-api-statistic.git
- Navigate to the project directory:
cd github-api-statistic - Install the dependencies:
npm install
- Create a
.envfile in the root directory of the project. - Copy the contents of
.env-exampleinto.envand fill in the required values:APP_NAME=GITHUB-API APP_ENV=local APP_KEY=base64:q1Q6 APP_DEBUG=true APP_URL=http://localhost APP_TIMEZONE=Asia/Jakarta PORT=3000 LOG_CHANNEL=stack DB_CONNECTION=mysql DB_HOST= DB_PORT= DB_DATABASE= DB_USERNAME= DB_PASSWORD= GITHUB_TOKEN=your_github_token_here
- Start the application:
npm start
- Open your browser and navigate to
http://localhost:3000.
/: Fetches and displays statistics for the authenticated GitHub user./username/:username: Fetches and displays statistics for the specified GitHub username.
This project is licensed under the MIT License.