serving the solutions day and night

Pages

Showing posts with label ASP.NET CORE WEB API. Show all posts
Showing posts with label ASP.NET CORE WEB API. Show all posts

Monday, December 21, 2020

Call REST API from ASP.NET Core Blazor

Blazor component can call REST API directly, but create a separate service that calls the REST API.


Solution Structure

1. Customer.API project using Repository Pattern
2. Customer.Models project to share between API and Blazor AppServer
3. Cusotmer.Server Blazoe AppServer project.

Saturday, August 15, 2020

.NET Core CLI Commands

  • dotnet new: Creates a new project from the specified template. If you want to create an MVC application, you can use dotnet new mvc
  • dotnet restore: Restores all the NuGet dependencies of our application. 
  • dotnet build: Builds our project. 
  • dotnet run: Executes our project. 
  • dotnet watch run: Runs our project and watches for file changes to rebuild and rerun it. 
  • dotnet publish: Creates a deployable build (the .dll) of our project. 
  • dotnet --list-sdks : look all net version in your computer

 

Thursday, January 30, 2020

Add SQL Server 2017 Docker Container to ASP.NET Core MVC/Web API Project

SQL Server 2017 is available for both Windows and Linux Containers. 

            docker pull mcr.microsoft.com/mssql/server


  • Verify SQL Server 2017 image was successfully pulled locally using "docker images" cmd

Tuesday, November 5, 2019

Deploy ASP.NET CORE WEB API to Containers and Azure Kubernetes using Concourse pipeline

GitHub Source Code
https://github.com/mkader/ConcourseAzureBlobContainerK8s



1. Create and Pull ASP.NET Core WEB API source code from GitHub using Concourse resource. 2. Running unit test using Concourse job. 3. Generate a Docker Container image. 4. Publishing it into a Azure Container Registry. 5. Generate a tar(zip) file 6. Store it into a Azure Blob Storage. 7. Generate semantic version and tag it into Docker Container image. 8. Deploys a Docker Container image from Azure Container Registry to Azure Kubernetes. 9. Add Coverlet Code coverage and SonarQube Code Analysis.