Countdown To ASP 5: Building a Sample App

Code Camp Atlanta Presentation 2015

This is my presentation for Code Camp Atlanta for 2015.
Click the image or this link to download the slides.

ASP 5 is on its way, are you ready?

This multi-page post is part of my presentation at Atlanta Code Camp 2015.

I’ve been talking about ASP 5 for about a year and a half at this point since it was called vNext.

Personally I’m really excited by the changes.

Since the early days of ASP.Net Microsoft did things their own way that made it hard to parlay your experience with ASP to any
other web development environment.

With the re-think of ASP in the new version, they have moved closer to they way most other web environments work.

Along the way to making ASP work cross-platform they yanked out .Net code that was really only geared to working on a desktop and not
a server. That means even Windows only developers will benefit from the cross platform work.

Back in the summer I did two talks in the same week. The first was for the Atlanta Windows App Developer group and the second was
for the Gwinnett, Georgia, Microsoft User Group.

The first was a workshop where the attendees built their own ASP 5 apps.

At least that was the plan.




Turns out that by the time I finished talking about what was new in ASP 5, we were out of time. Doh!

For Code Camp I decided to skip the talk and jump directly to building the sample app. That way I could code the app live
and just talk about what was new as we hit it.

The other posts in this set will give you some cheat sheets and a sample project you can build.

Here are the other posts in this series:

ASP 5 Cheat Sheet

ASP 5 Cheat Sheet




project.json

  • Replaces web.config
  • Define webroot directory
  • Register dependencies

    Nuget packages

  • Register commands
  • Define which frameworks are valid (.Net full, .Net Core)
  • Exclude files & directories from project

    wwwroot

  • Web accessible files ~ think content dir in older mvc
    • Images, scripts, stylesheets, etc.
  • Easier to isolate the files you want to serve

    config.json

  • Replaces web.config for appsettings & connection strings
  • Default option, you can also use xml, ini, or env vars
  • Expected path: config.json for local dev, env vars for servers

    bower.json

  • Manages client side dependencies
  • Like Nuget for javascript libs

    gulpfile.js

  • Define build and publish tasks
    • Copy files, minify css & javascript, etc.
  • Task Runner Explorer

    Startup.cs

  • Entry point for app
  • Add “Middleware” to pipeline
  • Dependency Injection
  • Configure Routes

Here are the other posts in this series:

ASP 5 Links



ASP 5 is a cross-platform web development environment.

ASP Home on GitHub

https://github.com/aspnet/Home

ASP Documentation

http://docs.asp.net/en/latest/index.html

Virtual Academy Video: What’s New with ASP.NET 5

https://www.microsoftvirtualacademy.com/en-us/training-courses/what-s-new-with-asp-net-5-8478

Virtual Academy Video: Introduction to ASP.NET 5

https://www.microsoftvirtualacademy.com/en-us/training-courses/introduction-to-aspnet-5-13786?l=PvSZtxoXB_5101937557

Create an ASP.NET MVC app with auth and SQL DB and deploy to Azure App Service

https://azure.microsoft.com/en-us/documentation/articles/web-sites-dotnet-deploy-aspnet-mvc-app-membership-oauth-sql-database/#add-a-database-to-the-application




Entity Framework 7 Documentation

http://ef.readthedocs.org/en/latest/getting-started/aspnet5.html

Database Migration in Entity Framework

http://www.codeproject.com/Tips/988763/Database-Migration-in-Entity-Framework

EF7 Migrations: DNX Commands

http://www.bricelam.net/2014/09/14/migrations-on-k.html

Top 10 Changes in ASP.NET 5 and MVC 6

http://stephenwalther.com/archive/2015/02/24/top-10-changes-in-asp-net-5-and-mvc-6

Pluralsight Course by Shawn Wildermuth: Building a Web App with ASP.NET 5, MVC 6, EF7, and AngularJS

http://www.pluralsight.com/courses/aspdotnet-5-ef7-bootstrap-angular-web-app

Here are the other posts in this series:

ASP 5 Workshop

Code Camp Atlanta Presentation 2015

This is my presentation for Code Camp Atlanta for 2015.
Click the image or this link to download the slides.

Here’s the workshop bit of the presentation.

You can download the PDF above and follow along.

I’ll update it over time based on your feedback, so please leave me a comment to let me know
if it was helpful or if you ran into problems.




The gist is that we are building a very simple web app that lets us track actual sightings of Windows Phones in the wild.

Obviously that is a tongue in cheek reference to the marketshare of Windows Phone, despite the fact I actually really
like the OS.

My version of the project can be found here:

Here are the other posts in this series:

Data Lake

Data Lake Comic

How you populate your Data Lake in Azure. At least I think this is how it works.

I normally post my comics over on Galactic Beacon, but since this one is
more like the programming related content of my blog, I’m putting it here.

Let me know in the comments if you like it and would like to see more posts of this sort.