ASP Module 2
Getting Started with MVC
Getting Started with MVC
  • Overview
    • Introduction to MVC
  • Understanding MVC
    • Creating an MVC app
    • Add a controller
      • Understand HTTP endpoint
      • Understand basic routing
    • Add a view
      • Understanding shared layouts
      • Setting view title
      • Passing data to view
  • Exercise
    • Add two numbers
      • Using Model
  • Display Movies
    • Add a model
      • Scaffold the index view
      • Scaffold the movies controller
      • Add temp movie data
      • Pass data to index view
    • Implement actions
      • The first create action
      • The second create action
      • The details action method
      • Edit & Delete actions
      • Asynchronous actions
    • Repo link
Powered by GitBook
On this page
  1. Understanding MVC

Creating an MVC app

Project creation

The walkthrough assumes you have Visual Studio with ASP.NET workload and the latest .NET Core SDK installed

  • Open the terminal

  • Change to the directory that will contain the project

  • Create the MVCMovie project

  • Change directory to get into the project folder

  • Run

The commands needed are shown below:

dotnet new mvc -o MvcMovie
cd MvcMovie
dotnet watch

dotnet new mvc -o MvcMovie creates a new ASP.NET Core MVC project in the MvcMovie folder.

PreviousIntroduction to MVCNextAdd a controller

Last updated 2 years ago