This project is a simple Node.js application that integrates with the GitHub API to fetch user data, repository data, and create issues in repositories.
- Node.js
- npm
-
Clone the repository:
git clone https://github.com/your-username/github-api-integration.git cd github-api-integration -
Install the dependencies:
npm install
-
Create a
.envfile in the root directory and add your GitHub token and username:GITHUB_TOKEN=your_github_token GITHUB_USERNAME=your_github_username
-
Start the server:
npm start
-
The server will run on
http://localhost:3000.
Fetches the authenticated user's GitHub data including followers, following, and repositories.
Fetches data about a specific repository.
Creates an issue in the specified repository.
{
"title": "Issue title",
"body": "Issue description"
}