GithubHelp home page GithubHelp logo

deepsingh132 / portfolio-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 26 KB

๐Ÿš€ Dynamically showcase your GitHub pinned repositories on your portfolio website with this Node.js Express API.

Home Page: https://portfolio-api-jade.vercel.app/api/v1/github/pinned-repos

TypeScript 100.00%
api express github graphql node nodejs pinned portfolio repositories typescript pinned-repos

portfolio-api's Introduction

GitHub Pinned Repositories API

This Node.js Express application serves as an API to fetch pinned repositories from GitHub, designed specifically for integration with a portfolio website. By using this API, you can dynamically display your GitHub pinned repositories on your portfolio site, keeping it up-to-date with your latest projects.

Table of Contents

Installation

  1. Clone the repository:

    git clone https://github.com/deepsingh132/portfolio-api.git
  2. Navigate to the project directory:

    cd portfolio-api
  3. Install dependencies:

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

    GITHUB_ACCESS_TOKEN=your-github-access-token

    Note: Ensure your GitHub access token has the repo scope.

  5. Start the server:

    npm start

Usage

Once the server is running, you can make HTTP requests to the specified endpoints to retrieve your pinned repositories.

Endpoints

Get Pinned Repositories

  • Endpoint: /api/v1/github/pinned-repos

  • Method: GET

  • Description: Fetches the pinned repositories from the authenticated user's GitHub account.

  • Example Request:

    curl http://localhost:5000/api/v1/github/pinned-repos
  • Example Response:

    {
      "repos": [
        {
          "name": "project-1",
          "description": "A brief description of project 1.",
          "url": "https://github.com/your-username/project-1"
        },
        {
          "name": "project-2",
          "description": "A brief description of project 2.",
          "url": "https://github.com/your-username/project-2"
        },
        // ...
      ]
    }

Configuration

You can customize the application by modifying the following parameters in the .env file:

  • GITHUB_ACCESS_TOKEN: Your GitHub access token.

Contributing

If you would like to contribute to the project, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

portfolio-api's People

Contributors

deepsingh132 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.