ASP.Net MVC Quick Start

3.9 (1932)
Learning paid
13.5 hours course
Course by Udemy
What will you learn?
Understand the major pieces of the Microsoft ASP.Net Framework
Have a public-facing website with authorization, authentication, and real-world value to enhance your resume/electronic portfolio
Understand how to use the code-first approach to generating a database using Entity Framework
Discuss the differences between Models, Views, and Controllers
Have the tools to setup and host a basic CRUD Web Application online
Have a basic understanding of working with Git, BitBucket, and AppHarbor
About the course

    This course is a very quick workshop to take you through the basic actions that will be required for you to create an awesome, real-world CRUD web application in just a few hours (you could do it over a weekend very easily) using ASP.Net MVC, the Entity Framework (code-first development approach), and the built-in scaffolding capabilities of ASP.Net MVC.  In the end, you'll have your own public-facing website to enhance your resume and show off your skills in your own e-portfolio for job interviews and applications!  

    MVC = Model, View, Controller, and is a well-known and established design pattern.  Microsoft has made it extremely easy and convenient to create your web solutions using this pattern.  In Microsoft's MVC framework, we find that convention is favored over configuration, so as long as we follow a few simple guidelines, the system will do a lot of the work for us. 

    We'll also be taking a quick look at how we can use the Entity Framework to easily model and create a database for us.  By using the code-first approach, we'll simply create our models and then look at writing a DBContext to store the models.  We'll also look at some of the more critical operations, such as building relationships and seeding our data.

    After we've learned about the different aspects of our application, we'll quickly create a couple of controllers and use ASP.Net MVC's built-in view and scaffolding generators to easily build our CRUD operations against our database.   While working on controllers we'll also look at Authentication, Authorization, and a couple of other quick security concerns.

Other things we will learn throughout the course involve the use of GIT for source control, pushing our repository to GitHub, and setting an upstream to AppHarbor so that we can get pseudo-continuous integration setup. You could also use BitBucket, GitLab, Azure Dev Ops, or another repository provider if you prefer that to GitHub.    Also, you could push to Azure, AWS, or another provider that hosts .Net Framework projects if you like, but AppHarbor is free of charge.

To close out the course, we'll put DataTables.js on our Index view so that we can easily show the data, as well as provide built-in javascript tools that will filter and sort the data for us.  This will make your application "pop" when people look at it because it will be fast and easy to sort through the data and filter for results.

By the end of the course, you'll be familiar with the major working parts of creating an Asp.Net MVC CRUD application and publishing to a public-facing website with a fairly nice and responsive UI.  You'll have working knowledge of Models, Views, and Controllers, as well as how they interact to create a functional web application.  You'll also be exposed to the Entity Framework and Code First Migrations with use of a SQL Server backend.  The best part is that although this sounds pretty daunting, it's actually quite easy with a majority of the work done for us by convention and tools.

Getting Started
Welcome to the course, what the course is all about, and getting our default environment and project setup.
Introduction, Welcome, and Overview
This is the introductory lecture for the course.  This lecture explains what this course covers, including creating a new ASP.Net MVC web application from the ground up and being able to deploy the application to AppHarbor using Git [BitBucket].  The application will use MSSQL as the database backend (one video covers setting up the free database at AppHarbor.  Additionally, we'll use Facebook to authenticate our users and allow them to each store their own contact information as they so desire.
The Job Posting
The entire idea for this course came from a job posting that I saw a couple of years ago.  Essentially, the task was to create a public-facing website that allows the user to store "Person" objects with critical details like name and phone number.  In addition to the minimums they ask for the ability to be able to filter and sort, add, delete, and modify the items.  We'll learn how to do all of this very easily in this course, and by the end of the course would have a public-facing URL that could be sent with our application for this position.
Install Visual Studio Community 2017
In this video, we'll get Visual Studio 2017 community installed.We can install side-by-side with 2015 (or older versions) if desired. Most projects are easily upgradable to 2017 without issue, however older projects that are no longer supportedshould not be upgraded.
Install SQL Server 2017 Express
In this video, we'll get SQLserver 2017 express installed.With VS 2017 we can still use the local db file, but if you don't want to, you can put sql express on your machine and run off a local version of the db.It's good for us to get used to using a lightweight version of the real db anyway, and this will give us a chance to work with the local db outside of visual studio as needed.
Install SQL Server management Studio
The best way to interact with SQLServer express directly is via the Management Studio tool. SSMS [SQLServer Management Studio] is a free tool that allows us to easily connect to databases, set up security and new databases, and query existing databases.We'll want to have this tool so that we can directly interact with our database outside of the visual studio environment.Even better news is that once we have the tool setup, we can also connect to our AppHarbor database and be able to easily query the database there as well.
Install GIT for Windows
VS 2017 has plenty of built-in tools to work successfully with GIT, however the videos from our course use GitForWindows.I did a video a month or so ago and wanted to share this with you as it is more recent.
Creating The Project
IMPORTANT UPDATE: Although it is not shown in the video, you can save yourself a LOT of pain if you select to create a GIT repository for the solution.  This will auto-generate a .gitIgnore file that will keep a lot of painful things from being tracked. If you do create the git repo at this time, you won't need to create it manually later, but you will still need to wire it up with the upstream later [this will make sense when you get there].

If you are past this lecture and you didn't create a .gitIgnore file, refer to the updates portion of the course for cleaning up our GIT repository.
This video takes us through the creation of the project that we'll be building for the remainder of the course.  When we create a default MVC project, we're set up with the tools and frameworks we need in order to create a fully-functional web application in ASP.Net MVC with C#.  

We'll modify some of this and we'll still need to add in our database information in future lectures, but we'll see that things are wired up pretty well right out of the box.
Setup your project to use a local instance of SQLExpress [Optional]
Setup and Configuration
Getting the project setup and configured with libraries and tools
Changing the Folder Structure
In this video we are going to blow away some of the default folders so we can set up our project with a more-common web layout.  We'll also get a chance to work through the restructuring to see how the different components work together.  For our web app to be complete, we'll need to recreate a folder for our javascript and css and also will have to add in a folder for images.  We'll be taking care of most of that in the next few lectures.
Get JQuery
JQuery is one of the most powerful and widely-used javascript libraries available.  JQuery allows us to quickly work with javascript to build robust UI experiences on the client side of our application.  While we won't be using a lot of it in our course, we'll need it in order to work with Bootstrap, as well as having this is a common staple in .Net development.
  • You should at least be a little familiar with Web Programming in HTML, javascript, and CSS
  • We will go through installing the tools you need
  • We will cover everything you need to understand and be able to build and deploy a public-facing website to enhance your resume/e-portfolio
Brian Gorman
Brian Gorman
Software Engineer and Computer Science Instructor
Udemy courses are suited to professional development. The platform is organized in such a way that it is experts themselves that decide the topic and when the course will start. All supporting documents are made available to you for lifetime access. On this platform, you can find a course on about any subject, and that is no exaggeration – from a tutorial on how to ride a motorcycle, to managing the financial markets. The language and the course format are established by the teacher. This is why it is important to read the information about the course carefully before parting with any money.
Comments (1932)
Like any other website, konevy uses «cookies». These cookies are used to store information including visitor's preferences, and the pages on the website that the visitor accessed or visited. The information is used to optimize the users' experience by customizing our web page content based on visitors' browser type and/or other information. For more general information on cookies, please read the «What Are Cookies» article on Cookie Consent website.