
Build the .Net Core API and Angular Application step-by-step and then enables docker in that and after creating images run that into the docker container.
Install Visual Studio Community (it’s free) with the ASP.NET and web development workload.
1. Create a new ASP.NET Core Web API Project

2. Configure the new Project

3. Set Additional Information of Project like Target Framework, Authentication Type, Enable Https, Enable Docker, Docker OS Support Etc.

Add the new Controller “DemoController”. It will return Welcome to the Docker World when we hit the get method.

This is the Dockerfile that is created by Visual Studio when we enable the Docker Support option while creating the new Web Application.

After that when we run the application by using Docker then It will create the Docker Image in Docker Desktop which you installed on your local machine. (Please confirm the Docker Desktop is running properly on your machine and it will be in running mode)

Here you will see the output after executing the get method of DemoController.

Build Angular Application
Open the Visual Studio Code
1. Create the new Directory at a particular location
mkdir WebAPP
2. Go inside the WebAPP Directory
cd .\WebAPP\
3. Install the Angular CLI inside that.
npm install -g @angular/cli








Join the conversation! Your thoughts help the community grow.