- Install .NET 5 in your machine. To check this, run
dotnet --version
- This project will need an IIS site with the name and an HTTP(80) binding set to
contact.hero.assesment
- Open ContactForm.sln with Visual Studio 2019. This project was built using Visual Studio 2019 as it's the only one with support for .NET 5 at the moment.
- Build the solution and publish using the IISProfile.pubxml publish profile
- Browse to
http://contact.hero.assessment
and you should the site. - If you don't see the site, you'll need to add a hosts entry like this:
127.0.0.1 contact.hero.assessment
- Create a basic MVC web application project in Visual Studio. This project can follow any solution structure you wish, as long as it is easy to navigate to any user.
- Include a README of necessary steps to set up and install your application.
- The application must include a publish profile using Web Deploy to a local IIS website.
- The home page should include a simple contact form. The form must include the following fields:
- First name
- Last name
- Email address
- Phone number
- Contact message
- Upon submission of the contact form, you must perform backend validation on the email format.
- If the form is valid, you must redirect the user to a dedicated thank you page.
- The thank you page should include a re-gurgitation of the form submission details from the user.
- Ensure the solution is secure from cross-site scripting