A forum is a deceptively complex thing. Sure, it’s made up of threads and replies, but what else might exist as part of a forum? What about profiles, or thread subscriptions, or filtering, or real-time notifications?
As it turns out, a forum is the perfect project to stretch your programming muscles. In this series, we’ll work together to build one with tests from A to Z.
Let’s begin by reviewing the most minimal requirements for a forum. If you think about it, we couldn’t possibly construct a forum without users, threads, and replies. So let’s tackle those first.
Now that we have our seed data in place, we can move on to our first small feature: “a user should be able to read threads.” Simple enough! We’ll start with a basic test, and then scaffold the necessary views to make it pass.
Now that we’ve added a basic feature for users to read forum threads, we can next move on to viewing all replies associated with each thread. As before, we’ll start with a test to describe our desired outcome.