Welcome to day eight of the useaffiliates.com build log! This series covers my journey of building a business from scratch in public. If you missed day seven, you could check it out here. I also uploaded today's Twitch stream to YouTube if you want to watch the replay.
Like yesterday, let's start with a cool update; I made my first couple of dollars from this project today! Well, sort of, I have yet to launch the project but a generous Twitch viewer donated to my stream with the comment:
"Am I an angel investor now? 😦"
Well, you are definitely an angel. I appreciate it! 🥰
If I wasn't motivated enough already, this fires me up even more.
With the listing component coded yesterday, it was today's task to get the actual data into the app. I was curious how the listing design would hold up with the actual data. Very long or short titles and descriptions, especially when listed below each other, can make a listing look messy when not designed correctly.
Hooking up the Notion database via the API was pretty straightforward. However, that was after I realized that I was trying to make the getStaticProps
function work inside a component when it only works inside a NextJS page component (oops, shit happens).
Once I copied the getStatisProps
function to the right component, I can tell you; everything still looks great! Still, I have quite some database work todo, but a quick scroll through the listing and not a single row made me go, "oh no, what monster have I created!?".
I see this as an absolute win.
However, one issue came to light: Notion cuts description texts once it encounters any text formatting. That probably happened when I copied and pasted some affiliate program descriptions, so I'll have to fix that. I'll batch that work together with uploading all the program's images (still not looking forward to doing that).