Welcome to day ten of the useaffiliates.com build log! This series covers my journey of building a business from scratch in public. If you missed day nine, you could check it out here. I also uploaded today's Twitch stream to YouTube if you want to watch the replay.
Seeing that we are already on day ten goes against my way of building a new product. Usually, I would try to design, code, and release something within a weekend. However, it might have something to do with the fact that I am doing everything in blocks of 3 hours on stream, and I am not 100% focused on the launch.
Let’s change that mindset, starting today.
To get to launch faster, we need to postpone the blog. Implementing the blog on its own would probably take half a day, let alone that I don’t have any content for it yet. My idea now is to launch everything else, gather feedback early, and then launch the blog once I have time to dive into keywords to see where there is traffic to gain.
Remember, after completing the listing and the database work, we still have to set up the about page and the “post your program” page.
Yesterday we styled the filter dropdowns, so today was the time to hook up the biggest of them all; the category filter!
Since the category filter is being used on multiple pages, I decided to set up a filterContext
so that we had a single source of truth for setting the filter values and updating them. We still have to fix a nasty bug because if we route from the category page back to the home, we get redirected to the category page again. After all, the context value hasn’t been updated (fast enough?).
I struggled with this bug for a little while but decided to move on and get back to it later. I will make this more of a habit since I spend a lot of time on issues that could wait and that are very likely fixed if I sleep on it.
Why don’t I go another route? Because when the user comes to a category page, we want the dropdown to show the current category; otherwise, it will be confusing. What if someone selects the “music” category from the dropdown when they are already on the music page? Nothing will happen, and a user might think the application is busted. No bueno.
We also coded the [category]
template, which is awesome. The category pages are statically generated, including the first 12 results from the DB. This is great for SEO, but this also means that navigating categories will be very fast.