Skip to content

lucasmat7/rip-chico

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RIP Chico

A minimal ASP.NET Core 8.0 (LTS) web application displaying "RIP Chico" centered on a single page.

Features

  • Single page displaying "RIP Chico"
  • No authentication or database
  • Built with ASP.NET Core 8.0 (latest LTS)
  • Automated deployment to Azure App Service via GitHub Actions

Prerequisites

Running Locally

  1. Clone the repository:

    git clone https://github.com/lucasmat7/rip-chico.git
    cd rip-chico
  2. Navigate to the project directory:

    cd RipChico
  3. Run the application:

    dotnet run
  4. Open your browser and navigate to:

    http://localhost:5000
    

Building the Application

To build the application:

cd RipChico
dotnet build

To publish the application for deployment:

cd RipChico
dotnet publish --configuration Release --output ./publish

Deployment to Azure App Service

This repository includes a GitHub Actions workflow that automatically builds and deploys the application to Azure App Service on every push to the main branch.

Setup Instructions

  1. Create an Azure App Service:

    • Go to the Azure Portal
    • Create a new App Service with .NET 8 runtime
    • Note the app name
  2. Download the Publish Profile:

    • In the Azure Portal, go to your App Service
    • Click "Get publish profile" and download the file
    • Copy the entire contents of the downloaded .PublishSettings file
  3. Add GitHub Secret:

    • Go to your GitHub repository
    • Navigate to Settings → Secrets and variables → Actions
    • Click "New repository secret"
    • Name: AZURE_WEBAPP_PUBLISH_PROFILE
    • Value: Paste the contents of the publish profile file
    • Click "Add secret"
  4. Update Workflow File:

    • Edit .github/workflows/azure-deploy.yml
    • Replace your-app-name with your actual Azure App Service name
  5. Deploy:

    • Push changes to the main branch
    • GitHub Actions will automatically build and deploy the application
    • Check the "Actions" tab in GitHub to monitor the deployment

Workflow Details

The workflow (.github/workflows/azure-deploy.yml) performs the following steps:

  1. Checks out the code
  2. Sets up .NET 8.0
  3. Restores dependencies
  4. Builds the application in Release mode
  5. Publishes the application
  6. Deploys to Azure App Service using the publish profile

Project Structure

rip-chico/
├── .github/
│   └── workflows/
│       └── azure-deploy.yml    # GitHub Actions workflow for Azure deployment
├── RipChico/                   # ASP.NET Core application
│   ├── Pages/
│   │   ├── Index.cshtml        # Main page with "RIP Chico" text
│   │   ├── Index.cshtml.cs     # Page model
│   │   └── Shared/
│   │       └── _Layout.cshtml  # Layout template
│   ├── wwwroot/                # Static files
│   ├── Program.cs              # Application entry point
│   └── RipChico.csproj         # Project file
└── README.md                   # This file

License

This project is open source and available for any use.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors