Coder Social home page Coder Social logo

arkatufus / azure-container-app-akkadotnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from petabridge/azure-container-app-akkadotnet

0.0 0.0 0.0 1.45 MB

License: MIT License

C# 61.48% PowerShell 2.69% CSS 6.28% HTML 23.72% Dockerfile 0.91% Bicep 4.93%

azure-container-app-akkadotnet's Introduction

Akka.NET: Shopping Cart App

A canonical shopping cart sample application, built using Akka.NET. This app shows the following features:

  • Shopping cart: A simple shopping cart application that uses Akka.NET for its cross-platform framework support, and its scalable distributed applications capabilities.

    • Inventory management: Edit and/or create product inventory.
    • Shop inventory: Explore purchasable products and add them to your cart.
    • Cart: View a summary of all the items in your cart, and manage these items; either removing or changing the quantity of each item.

Shopping Cart sample app running.

Features

The app is architected as follows:

Shopping Cart sample app architecture.

Get Started

Prerequisites

Quickstart

  1. git clone [email protected]:petabridge/azure-container-app-akkadotnet.git akka-on-container-apps
  2. cd akka-on-container-apps
  3. dotnet run --project src\Akka.ShoppingCart\Akka.ShoppingCart.csproj

Deploying To Azure Container Apps

Create a Resource Group

Before deploying the app, you need to create an Azure Resource Group (or you could choose to use an existing one). To create a new Azure Resource Group, use one of the following articles:

Prepare For Azure Deployment

In this tutorial, we will be using Azure CLI and Azure Bicep to create all of the resources needed by the example project and to deploy the Docker container into Azure Container Apps.

Provision Required Azure Resources

We will use PowerShell, Azure CLI, and the provided .bicep files to automate our Azure resource creation. A convenience PowerShell script deploy.ps1 is available to deploy the whole stack in one go.

The deploy.ps1 file will:

  • Prompt you for a unique name for your Azure Container Apps
  • Prompt you for the Azure Resource Group to deploy to
  • Prompt you for the location to deploy the resources
  • Launch az login for you to log in to your Azure account
  • Flex the acr.bicep file to deploy an Azure Container registry
  • Login Docker to Azure Container Registry
  • Builds a Docker image for the sample project
  • Push the Docker image to Azure Container registry
  • Flex the main.bicep file to provision:
    • Azure Storage account
    • Azure Application Insight
    • Azure Log Analytics workspace
    • Azure Container Apps Environment
    • Azure Container App

Explore The Bicep Templates

The Bicep files used in this example is nearly identical to the one used in the Orleans example.

To read more about the Bicep files and how they are used in resource provisioning, please read the documentation.

Acknowledgements

The Akka.ShoppingCart project uses the following 3rd party open-source projects:

  • MudBlazor: Blazor Component Library based on Material design.
  • Bogus: A simple fake data generator for C#, F#, and VB.NET.
  • Blazorators: Source-generated packages for Blazor JavaScript interop.

Derived from:

azure-container-app-akkadotnet's People

Contributors

arkatufus avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.