Lesson 5.5: Create Web Service to Retrieve ItemTemplates

With a working Azure Functions project in place, we are ready to start moving code into our web service. We have various sources of game data: items, monsters, locations, quests, recipes, and traders. Each of these data sources would make a great web service. So let's start by creating a simple web service that loads … Continue reading Lesson 5.5: Create Web Service to Retrieve ItemTemplates

Lesson 5.4: Create New Azure Functions Project

As we discussed in the introduction to this chapter, we will be learning how to use Azure Functions to build the web services for our game. Azure has several compute and hosting options to pick from, but since we're investigating the serverless options, Azure Functions makes the most sense. But let's take a quick look … Continue reading Lesson 5.4: Create New Azure Functions Project

Lesson 5.3: Create Continuous Delivery Pipeline for Blazor app

Now that we have our game building automatically in Azure Pipelines and an Azure Storage account configured to host our application, we need to build an automated pipeline to deploy new builds to the desired storage account. We will do this by using the Releases pipeline in Azure DevOps. Similar to Continuous Integration (which we … Continue reading Lesson 5.3: Create Continuous Delivery Pipeline for Blazor app

Lesson 5.2: Setting up Azure Storage Account for Static Website

Since our game is already a Blazor WebAssembly, we will easily be able to deploy it to multiple cloud hosting platforms. Any service that provides for a static website will also be able to host our game. In this series, we're going to be working with Azure for our web service development, so it makes … Continue reading Lesson 5.2: Setting up Azure Storage Account for Static Website

Lesson 5.1: Introduction to Serverless Architecture in Azure

In the last few years, the concept of serverless computing has become much more prominent, but what does that actually mean? There are clearly servers in the cloud running code to implement our web application or service. But with serverless cloud implementations, we free developers from infrastructure management and allow the cloud providers to manage … Continue reading Lesson 5.1: Introduction to Serverless Architecture in Azure

Lesson 4.14: Move Remaining Data to JSON

We've made progress moving our data files thus far. In this lesson we are going to convert the last three factories to load their data from JSON files. We will follow the patterns that have been used in the last 3 lessons: Data Transfer Objects, our JsonSerializationHelper, and modifying the factories to retrieve instances of … Continue reading Lesson 4.14: Move Remaining Data to JSON

Lesson 4.13: Read World Data from File

As we continue moving our data from code to files, the world locations are the big source of data to convert. We will follow the same design principles as the last two lessons: JSON file with data, Data Transfer Objects for reading data and creating game objects, and refactoring corresponding game classes to be more … Continue reading Lesson 4.13: Read World Data from File

Lesson 4.12: Read Monster Data File

We are going to continue our move to data files by working on the monster data. We will follow the same design that we described in the last lesson. We will create a new JSON data file, create a couple of Data Transfer Objects to use in serialization, and update the MonsterFactory to load and … Continue reading Lesson 4.12: Read Monster Data File