Master GitHub Actions with hands-on labs and exercises. Learn how to automate workflows, run tests, deploy applications, and more using GitHub's powerful automation platform. This repository has everything you need to get started with continuous integration and continuous deployment.
In this lab, you will create a .NET Core Web application using the command line. This app will be used for future labs.
Duration: 10-20 minutes
Create a new directory for the project by running the following command:
mkdir WebApp
Navigate into the newly created directory:
cd WebApp
In the command prompt, create a new .NET Core Web application by running:
dotnet new webapp
This will generate a basic ASP.NET Core Web application.
After the application is created, run it using the following command:
dotnet run
The application will start and listen on a local port. You should see output indicating that the application is running.
Navigate to the URL https://localhost:5001
to view the application.
Note: The port number may vary. If you see a different port number in the output from
dotnet run
, use that number instead.
Ctrl+C
in the command prompt. This will terminate the application.src/dotnet
directory.In this lab, you successfully created a .NET Core Web application using the command line. You also ran the application locally in your browser. This application will be used in future labs.