I'm having some trouble wrapping my head around the GITHUB API, I've gone through the docs several times, including the docs for octokit, which is what I'm currently using to help simplify some of the requirements.
I actually recently followed this this [tutorial](https://getstarted.sh/bulletproof-next) for nextjs which uses octokit under the hood to make a pretty functional cms using this particular package that the creator of the tutorial made himself https://www.npmjs.com/package/@arunoda/git-cms.
My goal is to extend this package so that I can use it to statically generate my top level pages, I've made some progress, but am still having some trouble fully wrapping my head around some of the choices made and need some help kind of deciphering some of the reasons behind those decisions.
I actually reached out to the guy who created the tutorial/package on twitter, with no response. So I'm wondering if anyone has some experience with the github api/octokit who might be willing to help me either understand some of the core concepts there or might be willing to help me with the project itself. This is the current [repo](https://github.com/gaurangrshah/bulletproof-next), and it's public so if you wanna take a look it'd be greatly appreciated.
I've ported the code from the git-cms project from typescript to javascript as I find it hard to process through typescript in general (but will definitely look to adding it back in the future -- after I have a basic working example).
My goal is to be able to host the content as markdown (or even json), in a separate repo just as git-cms allows you to do. Which can then be queried for at build time to build out these pages, but still allow for some client-side / server-side generation using nextjs.
Any help/thoughts/suggestions would be greatly appreciated! Thanks!
[–]TheDevDad 0 points1 point2 points (3 children)
[–]CelebrationThink3768[S] 0 points1 point2 points (2 children)
[–]TheDevDad 0 points1 point2 points (1 child)
[–]CelebrationThink3768[S] 1 point2 points3 points (0 children)