Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub API Integration

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.

Prerequisites

  • Node.js
  • npm

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/github-api-integration.git
    cd github-api-integration
  2. Install the dependencies:

    npm install
  3. Create a .env file in the root directory and add your GitHub token and username:

    GITHUB_TOKEN=your_github_token
    GITHUB_USERNAME=your_github_username

Usage

  1. Start the server:

    npm start
  2. The server will run on http://localhost:3000.

API Endpoints

GET /github

Fetches the authenticated user's GitHub data including followers, following, and repositories.

GET /github/:repoName

Fetches data about a specific repository.

POST /github/:repoName/issues

Creates an issue in the specified repository.

Request Body

{
  "title": "Issue title",
  "body": "Issue description"
}

About

A Node.js application that provides a simple interface to interact with GitHub's REST API, allowing users to fetch profile data, manage repositories, and handle issues through Express.js endpoints.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages