Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Github GraphQL API as data source for the website #4

Open
wutsqo opened this issue Oct 23, 2021 · 0 comments
Open

Use Github GraphQL API as data source for the website #4

wutsqo opened this issue Oct 23, 2021 · 0 comments

Comments

@wutsqo
Copy link

wutsqo commented Oct 23, 2021

I just found a better solution related to issue #1

We can utilize this gatsby plugin to use GitHub GraphQL API directly as our data source. This solution is way better than hardcoding every project's data into a JSON file. So, every time there are new changes to a repository data (issues, forks, etc.), the maintainers just need to rebuild and redeploy the site (since Gatsby generates static pages files at build time).

I'm not familiar with Github pages, but in Netlify, we can automate the rebuild process by utilizing the Build hooks feature so the build and deploy process will work seamlessly.

pic related
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant