From the course: .NET Microservices for Azure Developers
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Creating your first microservice using ASP.NET Core - Azure Tutorial
From the course: .NET Microservices for Azure Developers
Creating your first microservice using ASP.NET Core
- [Instructor] Now that we have the repo, let's first create the gitignore file. So dotnet new gitignore, and now let's create the source folder. Inside this folder, I'm going to create a new web API project for the Management microservice. So let's execute dotnet new webapi and the name is going to be Wisdom Pet Medicine Management API. And I'm going to pass use controllers since I want to use controllers instead of the minimal web APIs that we have in ASP .NET core. Okay, let's execute this. And now the project was created. So here, I want to create a solution file. So dotnet new solution. And the name is Wisdom Pet Medicine. And let's add the project to the solution. So dotnet solution add. And I'm going to add this project. And finally, let's verify if we have the project in the solution. And now we're ready to test this out. So let's type Wpm.sln so I can open Visual Studio. And from here, I'm going to start a debugging session. So let's click on HTTPS. And you can see that this…
Contents
-
-
-
-
Creating and cloning the repo1m 2s
-
(Locked)
Creating your first microservice using ASP.NET Core1m 54s
-
(Locked)
Creating and registering the DbContext for the microservice5m 49s
-
(Locked)
Creating the PetsController and returning the list of pets2m 36s
-
(Locked)
Obtaining a single pet in the PetsController1m 30s
-
(Locked)
Creating a new pet3m 21s
-
(Locked)
Challenge: Implementing BreedsController and validations1m 5s
-
(Locked)
Solution: Implementing BreedsController and validations1m 35s
-
-
-
-
-