text stringlengths 0 13.4k |
|---|
Total tests: 1. Passed: 1. Failed: 0. Skipped: 0. |
Test Run Successful. |
Test execution time: 2.0588 Seconds |
Wrap up |
110 |
Integration testing |
Testing is a broad topic, and there's much more to learn. This chapter |
doesn't touch on UI testing or testing frontend (JavaScript) code, which |
probably deserve entire books of their own. You should, however, have |
the skills and base knowledge you need to learn more about testing and |
to practice writing tests for your own applications. |
The ASP.NET Core documentation (https://docs.asp.net) and Stack |
Overflow are great resources for learning more and finding answers |
when you get stuck. |
111 |
Deploy the application |
Deploy the application |
You've come a long way, but you're not quite done yet. Once you've |
created a great application, you need to share it with the world! |
Because ASP.NET Core applications can run on Windows, Mac, or Linux, |
there are a number of different ways you can deploy your application. In |
this chapter, I'll show you the most common (and easiest) ways to go live. |
Deployment options |
ASP.NET Core applications are typically deployed to one of these |
environments: |
A Docker host. Any machine capable of hosting Docker containers |
can be used to host an ASP.NET Core application. Creating a Docker |
image is a very quick way to get your application deployed, |
especially if you're familiar with Docker. (If you're not, don't worry! |
I'll cover the steps later.) |
Azure. Microsoft Azure has native support for ASP.NET Core |
applications. If you have an Azure subscription, you just need to |
create a Web App and upload your project files. I'll cover how to do |
this with the Azure CLI in the next section. |
Linux (with Nginx). If you don't want to go the Docker route, you |
can still host your application on any Linux server (this includes |
Amazon EC2 and DigitalOcean virtual machines). It's typical to pair |
ASP.NET Core with the Nginx reverse proxy. (More about Nginx |
below.) |
112 |
Deploy the application |
Windows. You can use the IIS web server on Windows to host |
ASP.NET Core applications. It's usually easier (and cheaper) to just |
deploy to Azure, but if you prefer managing Windows servers |
yourself, it'll work just fine. |
Kestrel and reverse proxies |
If you don't care about the guts of hosting ASP.NET Core |
applications and just want the step-by-step instructions, feel free |
to skip to one of the next two sections. |
ASP.NET Core includes a fast, lightweight web server called Kestrel. It's |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.