Your blog's 'front page' is now working

If you go to a blog, it'll show article previews - starting with the newest. This is based on the order articles are added to the database - oldest to newest (top/down). Then we reverse the array of articles to have the newest ones first.

It's taken a bit of time to get this page working. Previously, I wasn't storing article content in the database - it was in GitHub. Because of this, there didn't seem to be a good way to display articles on the front page of a blog.

Now, when you upload a new article to your repo, we parse the markdown, gather some data/content, and store a copy in our database.

Slightly off-topic:

This also saves API requests to GitHub. As an authenticated GitHub app, we are allowed 5,000 requests per hour per repo.

Since a copy of the content is now in the database, I can begin refactoring code to pull individual article requests from there too. Right now, when you go to an article (not the main blog page), it pulls the data from the cache if it can, then grabs it from GitHub.

Once this refactoring is complete, the only time we should be making a request to GitHub for content is when you add or update an article.

Trending on Indie Hackers
I quit. 52 startups in 52 weeks 66 comments Launching new product today, hope to get your support and feedback ❤️ 16 comments Twitter accounts directory 11 comments 🐚 I Need Your Help! Landing Page Feedback 6 comments My first product with GPT-3: Get backlinks to improve your SEO 6 comments My Process For Building Fast 5 comments