Giter VIP home page Giter VIP logo

deploying-asp-dot-net-core-microservices-kubernetes-aks's Introduction

GloboTicket ASP.NET Core Microservices Sample Application

GloboTicket is a sample ASP.NET Core Microservices application that you can learn about in the Pluralsight .NET Microservices Learning path. This path consists of the following courses:

  • Microservices: The Big Picture
  • Getting Started with ASP.NET Core Microservices
  • Microservices Communication in ASP.NET Core
  • Implementing a data management strategy for an ASP.NET Core Microservices Architecture
  • Securing Microservices in ASP.NET Core
  • Versioning and Evolving Microservices in ASP.NET Core
  • Deploying ASP.NET Core microservices using Kubernetes and AKS
  • Implementing cross-cutting concerns for ASP.NET Core microservices
  • Strategies for Microservice Scalability and Availability in ASP.NET Core

Which branch contains what?

This repo contains many branches. Each branch corresponds to on eof the demos given in the course. To enable you to follow allong the demos yourself, you can switch to a specific branch for each of the demos. The following demo corresponds to the following branch:

Demo 1, Module 2 -> branch before_containarized_docker_compose Demo 2, module 2 -> branch containarized_docker_compose

Demo 2, Module 3 -> Branch create_acr_and_push Demo 3, Module 3 -> Branch create_acr_and_push Demo 4, Module 3 -> Branch zero_downtime_with_probes

Demo 1, Module 4 -> Branch containarized_allup Demo 2, Module 4 -> Branch containarized_allup

Demo 1, Module 5 -> Branch zero_downtime_dbchange Demo 2, Module 5 -> Branch zero_downtime_dbchange

Prerequisites

In order to build and run the sample GloboTicket application, it is recommended that you have the following installed.

Building the Code

You can either load GloboTicket\GloboTicket.sln in Visual Studio 2019 and build from within Visual Studio, or from the command line, in the same folder as GloboTicket.sln, enter the dotnet build command.

Running the Migrations

Before you run GloboTicket for the first time, you need to run the database migrations for all microservices that have a SQL database. These are the event catalog microservice, and the shopping basket microservice.

First, navigate into the GloboTicket\GloboTicket.Services.EventCatalog folder and run the dotnet ef database update command.

Then, navigate into the \GloboTicket\GloboTicket.Services.ShoppingBasket folder and run the dotnet ef database update command.

Running the Application from Visual Studio 2019

You can run the GloboTicket application directly from within Visual Studio. To do this, first right click on each of the three projects individually and view the project properties. In the Debug tab for each of the three projects, ensure that the Launch setting is set to Project (and not IIS Express). This will ensure that each microservice runs on the expected ports.

Then right-click on the solution file and select Set Startup Projects, and configure all three projects to either Start or Start without Debugging as desired. Now, when you run the project from within Visual Studio, all three projects will start up.

Running the Application from the Command Line

Alternatively, you can run the GloboTicket application from the command line. You will need to open three separate command prompts, one for each csproj file. For each project, navigate into the folder containing the .csproj file and run the command dotnet run.

Note: You may be asked to trust the .NET Core developer certificates. Make sure you do so, in order to use HTTPS to access the services.

Launch in a browser

If you have followed the instructions, the GloboTicket client application (website) will be running on port 5000, which you can access in the browser at https://localhost:5000.

The Event Catalog microservice will be running on port 5001 and you can view the API documentation at https://localhost:5001/swagger

The Shopping Basket microservice will be running on port 5002 and you can view the API documentation at https://localhost:5002/swagger

deploying-asp-dot-net-core-microservices-kubernetes-aks's People

Contributors

gillcleeren avatar kevindockx avatar markheath avatar vriesmarcel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deploying-asp-dot-net-core-microservices-kubernetes-aks's Issues

Issue with Deploying ASP.NET Core 6 to Azure App Services

Marcel,

Thank you for the very excellent course.

I'm getting the error on build that the csproj / sln files do not exist. Both do exist. This is for a PluralSight course, yes I have reached out via the Disqus platform earlier with other questions, got no response.

So the build in github fails at time point 2:34 in the module DevOps Deployments Using CI/CD, clip Configuring GitHub Actions. This was the only repo I could find, somewhat close in topic, to reach out to you.

Google is useless -- there are others who have brought this up and no one really answers it. Indeed, in once case, someone closed a pending issue immediately after replying to the end user "Well, what process flow were you using :)".

That is really shlocky, to be honest. There is no feedback from the end user saying "Thanks", so I suspect he / she felt blown off.

There is another article stating to specify the full or relative path for the files but the solution looks like it applies within DevOps, not GitOps.

This is probably a 'breaking change' of some sort.

My test project pushed up to GitHub is at https://github.com/PostalMike/deploymentapp.

Looks like it's easy to resolve but I don't see a way to config the action. I'm assuming this is the area to address -- config of the action so it knows, when it's run, where these 2 files are.

Thanks,

Mike

Exposed Service Bus Secret

Greetings Marcel!
In the AzServiceBusMessage class there is an exposed Service Bus key. I know that the goal is to make it so that the application is simply "runnable." However, I found that I need to change all the endpoints to http anyways and started looking through the code. It might be worth a step in the Readme.md for the user to create their own Service Bus and use their own key.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.