Web API Tutorials Part 5 : Azure Deployment from Visual Studio

Microsoft have made it extremely easy, almost trivial to deploy your web applications to the Azure cloud from Visual Studio.  Cloud capability is incredibly powerful for scalability, particularly in enterprise level applications and affords Developers with the option to make their infrastructure as Agile as their Software.

Outcome

By the end of this tutorial, we’ll have deployed our Web Application directly into a Web Site in Azure using their Platform as a Service offering (PaaS), meaning we don’t need to worry about a Virtual Machine, updates, and a myriad of other concerns. Continue reading “Web API Tutorials Part 5 : Azure Deployment from Visual Studio”

Web API Tutorials Part 4 : Controller Attribute Based Routing

Web API offers some powerful routing behaviour.  Let’s look at how we can use this in our app to avoid needing a new Controller for every Translation we wish to offer (again, ignore the fact our sample is likely only ever to require two way!).

We currently have a single AlphabetToMorseController with our old ITranslator implementation.  In the previous tutorial we abstracted our service into an extensible dictionary, this should allow us to take our Translator Key as a routing parameter and our string to translate as a parameter in the URI on our API.

Outcome

By the end of the post we’ll have refactored the existing AlphabetToMorseController to a generic TranslatorController, with our ITranslatorService being injected.  The Key will be provided through a Web API Route, and the Get Requested to the Controller will return a collection of available Translators. Continue reading “Web API Tutorials Part 4 : Controller Attribute Based Routing”

Web API Tutorials Part 1 : Web API

ASP.Net MVC Web API provides a straight forward controller based approach to creating RESTful HTTP based web services.  It should be quite familiar to anyone with an ASP.NET MVC background.  This tutorial won’t be focussing on what is and what is not RESTful, (there’s plenty of that already, and can get a little religious!).

Outcome

By the end of this post we’ll have created an ASP.Net MVC 5 Web API Project, and a new Controller ready for implementation.

Continue reading “Web API Tutorials Part 1 : Web API”

Review : Write Modern Web Apps with the MEAN Stack by Jeff Dickey

I recently decided to push myself and delve into a new stack to broaden my horizons, having heard a lot from friends about how great JavaScript is and how it’s taking over the world, I decided it was finally time to get to grips with it, and an opportunity to have a play with Visual Studio Code at the same time.  I picked the MEAN stack to look into, for anyone not in the know, MEAN stands for :

  • MongoDB
  • Express
  • Angular
  • Node

Coming predominantly from a .NET background (as you may have guessed) this was obviously quite a shift. Continue reading “Review : Write Modern Web Apps with the MEAN Stack by Jeff Dickey”