New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-starter-github-portfolio

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-starter-github-portfolio

Gatsby starter to show your github portfolio

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

gatsby-starter-github-portfolio

This is a starter site that attempts to follow the following flow:

  1. During development:
  • fetch data from github
  • filter and sort the data you got from github
  1. At build time:
  • static results get you a static page
  1. When accessing the site:
  • no API calls to Github's API

Install

npm install gatsby-starter-github-portfolio

Configuration

  • get a personal access token from github.
  • create a new file .env and save your token:
TOKEN=very-long-unreadable-string-goes-here
  • modify gatsby-config.js. Replace ldd (my user name) with yours. For example:
  q: "author:someUser is:merged state:closed type:pr sort:comments",
  author: "someUser"

Run

  • yarn develop or npm develop for development

  • yarn build or npm build to create a build that you can deploy to your favourite host

Tips and tricks

You probably want to look at gatsby-source-github-api for how to make valid queries.

Ideally, you should only modify:

  • gatsby-config.js to change the graphQL query from the github API
  • main.js to change the query on the data
  • dataParser.js to filter and sort the data you got

FAQ

There was an error in your GraphQL query
  • make sure you have a token and that you saved it in a file named .env
  • if you want to make a RAW github v4 Query, do it in gatsby-config.js
    • My plugin, gatsby-source-github-api takes an optional field, graphQLQuery, that let's you define it

FAQs

Package last updated on 28 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc