codeFeed
Photo by Philipp Meeh

codeFeed

I wanted to write an application that when invoked, would pull the latest changes in my commit history from my repositories. I could push this data to my website, and I thought it would be cool if this feed was updated automatically, so any visitor to my website would be able to see the progress I was making.

I decided to open source this project as I know I have a lot to learn from other's contributions. I also hope that fellow developers will find the code useful.

---------------------------------------------------------------------------------------------------------------

I started by planning out which language to use and how the algorithm will work. I decided to use node.js; partly because it would be easier to embed in other node.js applications, and partly because I wanted to become better at implementing node.js apps.

The algorithm was easy to develop. One issue I ran into was pinging the Github API too many times. I got around this by plugging in the results of an earlier API call when I could. The text file from pinging the Github API earlier served as a cache that would kick in when I exceeded the rate limit for the Github API.

---------------------------------------------------------------------------------------------------------------

I exposed the functionality of codeFeed through an API endpoint.

I am very happy with what I developed! Eagerly looking forward to feedback.






To view or add a comment, sign in

Insights from the community

Others also viewed

Explore topics