I kindly request your thorough examination and absorption of the comprehensive documentation incorporated within the confines of this repository. Your diligent review of the diverse materials provided herein will undoubtedly enhance your understanding of the intricacies and nuances associated with the contents therein.
Please also see following documents:
This is a simple .NET Core web application that displays "Hello, World!" or "Hello AppEngine!". This application is intended to be used as a starting point for creating a .NET Core web application that can be deployed to Google Cloud.
-
Update and upgrade system
sudo apt-get update && sudo apt-get upgrade -y
-
Install the .NET SDK 8.0 or later.
sudo apt-get install dotnet-sdk-8.0 dotnet --version # Check if the installation was successful
-
Insall the Google Cloud CLI Instructions GCloud CLI
-
Make sure to create your application first.
gcloud app create --region=europe-west1 --project=PROJECT_ID
- Clone the repository
git clone https://github.com/EliasDeHondt/DotNet-HelloWorld.git
- Navigate to the project folder
cd DotNet-HelloWorld
-
Restore the project
dotnet restore
-
Build the project
dotnet build
-
Run the project
cd HelloWorld.Cloud/ dotnet run
-
Open a web browser and navigate to
http://localhost:5000
to see the application running. -
Press
Ctrl+C
to stop the application.
-
Publish the project (
This can take a few minutes
)gcloud app deploy --quiet
-
You can find your URL at the end of the output of the previous command.
gcloud app browse
-
Open a web browser and navigate to the URL to see the application running.
- 👯 Web hosting company EliasDH.com.
- 📫 How to reach us [email protected]