Installation
In this section and the following sections, we will be using the same project as in your tutorials. The difference is that it does not contain the same tests and is not as complete. Let's set it up!
1.Fork the following repository to your Github profile:
https://github.com/WesternSydneyUniversity/comp3036-lecture-nextjs
2. Clone the repository
git clone <your-repository-url>
3. Open in Visual Studio Code
4. Install Packages
pnpm i
Instructions
- Complete all the user requirements below
- Cover each user requirement by end-to-end test (tag each test by “@pages”)
- If necessary, cover utility code and component code with unit tests
- Commit and push the code
- Make sure all tests pass
- Commit and push your code to your repository
User Requirements
- As a visitor, I want to be able to see the list of categories of active posts on a separate page
- As a visitor, when I click on a category, it needs to take me to a page where I can see only posts of a given category
- The post list shows the title, the short description, the category and the date posted
- As a visitor, when I click on a post title in the list, it takes me to the post details page
- As a visitor, I can see the title and content of the post on the detail page