TryDotNetMvc-CourseSampleCode
TryDotNetMvc-CourseSampleCode copied to clipboard
Sample code for the app created in the Try .NET MVC course
Try .Net Mvc - Sample Project
This is a combination of the Try .Net MVC slides and challenges
How to run this project
To run this code, just clone the repo and make sure you've got the following installed:
- An IDE or text editor (like Visual Studio Code which is what I used to update this project)
- .NET Core, which you can directly from Microsoft's .NET Core download page
- If you're running from command line, goto to the project's root directory and type
dotnet restorefirst, and thendotnet runto build and run the application so that it's available locally at http://localhost:5000.
Differences between this project and what was in the course
-
The project was upgraded from .NET Core was RC1 to .NET Core 1.1. (This changed
using Microsoft.AspNet.Mvc;tousing Microsoft.AspNet.Core.Mvc;all other changes don't impact what was covered in the course) -
Instead of both
EquipmentandCharacterusing theHomeControllerandHomeIndex, they're using theEquipmentControllerandCharacterControllerrespectively. -
The navigation in the
_Layout.cshtmlfile was updated to make both the Character and Equipment content accessible through the navigation for usability's sake. (this file was not discussed in Try .NET MVC)
.NET auto-generated README
When you create a .NET project from a template, it auto-generates a README. We've left the contents of that README below in case you're interested. Have fun!
Welcome to ASP.NET Core
We've made some big updates in this release, so it’s important that you spend a few minutes to learn what’s new.
You've created a new ASP.NET Core project. Learn what's new
This application consists of:
- Sample pages using ASP.NET Core MVC
- Gulp and Bower for managing client-side libraries
- Theming using Bootstrap
How to
- Add a Controller and View
- Add an appsetting in config and access it in app.
- Manage User Secrets using Secret Manager.
- Use logging to log a message.
- Add packages using NuGet.
- Add client packages using Bower.
- Target development, staging or production environment.
Overview
- Conceptual overview of what is ASP.NET Core
- Fundamentals of ASP.NET Core such as Startup and middleware.
- Working with Data
- Security
- Client side development
- Develop on different platforms
- Read more on the documentation site
Run & Deploy
We would love to hear your feedback