As always, before we start building, we should take a look at what we plan to build.
Firstly, we need to give a brief description of our intent; we plan to build an app that will let a user view any pre-existing discussion pages and then allow that user to comment on a page if they wish. The user can also create new discussions and other users can comment on them.
Let's take a look at a site map:
Now, let's go over each item and get a brief idea of what it does:
Home: Imagine this as the index—the routing start point. The user will visit the Home page and will be redirected to point 2 (the View All Discussions page).
View All Discussions: This will display all discussions in a list format. We'll have some filtering going on as well (the most recent first, most popular next, and so on). The user will be able to click on a discussion title and be redirected to the View Discussion page.
View Discussion/Add Comment: This page displays the initial comment (written by the person...