Skip to content

This repository contains a simple .NET Core web application designed to display "Hello, World!" or "Hello AppEngine!" as a starting point for deploying .NET Core applications on Google Cloud’s App Engine flexible environment.

License

Notifications You must be signed in to change notification settings

EliasDeHondt/DotNet-HelloWorld

Repository files navigation

logo

💙🤍README🤍💙

📘Table of Contents

  1. 📘Table of Contents
  2. 🖖Introduction
  3. 📦Extra
    1. 🖖Info
    2. ✨Steps
      1. 👉Step 0: Preparation
      2. 👉Step 1: Clone The GitHub Repository
      3. 👉Step 2: Restore & Build The Project
      4. 👉Step 3: Run The Project (Test)
      5. 👉Step 4: Publish The Project On GCloud
  4. 🔗Links

🖖Introduction

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:

📦Extra

🖖Info

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.

✨Steps

👉Step 0: Preparation

  • 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 

👉Step 1: Clone The GitHub Repository

  • Clone the repository
    git clone https://github.com/EliasDeHondt/DotNet-HelloWorld.git
  • Navigate to the project folder
    cd DotNet-HelloWorld

👉Step 2: Restore & Build The Project

  • Restore the project

    dotnet restore
  • Build the project

    dotnet build

👉Step 3: Run The Project (Test)

  • 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.

👉Step 4: Publish The Project On GCloud

  • 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.

🔗Links

About

This repository contains a simple .NET Core web application designed to display "Hello, World!" or "Hello AppEngine!" as a starting point for deploying .NET Core applications on Google Cloud’s App Engine flexible environment.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Languages