Skip to content

Instantly share code, notes, and snippets.

@indyone
Created November 22, 2019 07:18
Show Gist options
  • Save indyone/b09b0bbde274e4f1a2117f31cf349ad8 to your computer and use it in GitHub Desktop.
Save indyone/b09b0bbde274e4f1a2117f31cf349ad8 to your computer and use it in GitHub Desktop.

ASP.NET MVC Exercise

With this exercise you will learn how to setup an ASP.NET MVC project on Visual Studio and build a fully-functional but simple web application.

Prerequisites

To develop this web application on your PC, you will need the following to be installed and configured:

Specifications

Now, into the important stuff...

  • Start with an Empty ASP.NET Core Web Application (C#)
  • Organize your code with the proper folder structure
  • Pick a theme that will include at least two Models, that will have a one-to-many relation. For example:
    • Sportsbook Teams & Players
    • Todo/Shopping List & Items
    • Recipes & Ingredients
  • Create at least the following Views their corresponding Actions:
    • List with the group models (eg. Teams, Todo List, Recipes)
    • List with the item models (eg. Players, Todo List Items, Ingredients)
    • Add, Update & Delete group.
    • Add, Update & Delete item.
  • Implement the needed repository classes that will manage the data in-memory.
  • Configure the Dependency Injection properly for all needed services.
  • Optionally use a CSS framework such as Bootstrap.
  • Hint: Make sure to always use ViewModels for your Controllers & Views.
  • Another Hint: Utilize the _ViewStart.cshtml & _ViewImports.cshtml

Useful Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment