Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 1.66 KB

JuniorDevAssessment.md

File metadata and controls

42 lines (25 loc) · 1.66 KB

IDHL Logo

Junior Developer Assessment

Overview

You will create a blog post page using ASP.NET MVC. The focus is on demonstrating your fundamental skills in MVC, data handling, and basic front-end development.

Objectives

  1. ASP.NET MVC skills
  2. Routing and controllers
  3. Basic CSS and responsive layout
  4. Data retrieval and persistence
  5. Form input and validation

Exercises

Exercise 1

Develop an MVC view that displays the blog post content, utilising the layout provided in the template.html file.

Move the Blog-Posts.json file to an appropriate location in the project for reading and writing data. Replace the section marked <!--Blog post content--> with the content from this JSON file.

Load a specific blog post from the JSON file based on its ID, employing MVC routing and the appropriate controller actions. For example: /blog/1/, /blog/2/, /blog/<ID>/, etc.

Exercise 2

Display a list of comments related to the blog post, sourced from the JSON file. Add this content to the section marked <!--Blog post comments-->.

Exercise 3

In the section marked <!--Blog post comment form-->, add a comment form that allows users to submit comments, which will be stored against the relevant blog post item in the Blog-Posts.json file.

Form fields:

  • Name (required)
  • Email address (required)
  • Comment (required)

Exercise 4 (Optional)

Implement the functionality to reply to a comment. Save the reply in the appropriate section of the JSON file and display it directly underneath the comment to which the user has responded.