Giter Club home page Giter Club logo

codemic-aspire-app's Introduction

Codemic Aspire App

Demo app using .NET Aspire and .NET 8

Prerequisites

  • .NET 8 SDK
  • Aspire Preview 7
  • Aspir8
  • Docker
  • Kubernetes(Minikube) Requires Aspir8
dotnet workload update
dotnet workload install aspire
dotnet tool install -g aspirate --prerelease
dotnet tool install -g dotnet-grpc

This project contains the following services

  • Redis Cache
  • gRPC Service
  • Minimal API Service
  • Blazor Web app
  • Vue SPA

Grpc Service

Uses shared proto files

cd CodemicAspireApp/CodemicAspireApp.GrpcService
dotnet-grpc add-file -s Server ../Shared/Protos/*.proto

cd CodemicAspireApp/CodemicAspireApp.ApiService
dotnet-grpc add-file -s Client ../Shared/Protos/*.proto

Run CodemicAspireApp.AppHost project to start the Aspire process.

Aspir8

Initial set up using

These commands must be executed in the CodemicAspireApp.AppHost directory

aspirate init

Using Docker Desktop and Minikube

eval $(minikube -p minikube docker-env)

Build Aspire Manifest and docker images

aspirate build

append -ct TAG for custom tags

Generate Kubernetes manifest

aspirate generate -m manifest.json

append -ct TAG for custom tags

Apply manifest to cluster

aspirate apply

Testing

We need to expose the service from Kubernetes

kubectl port-forward service/apiservice 7080:8080
kubectl port-forward service/vue 8000:8000
kubectl port-forward service/webfrontend  8080:8080
kubectl port-forward service/aspire-dashboard  18888:18888

Vue app http:/localhost:8000/

Blazor app http:/localhost:8080/

Aspire Dashboard http:/localhost:18888/

codemic-aspire-app's People

Contributors

aurlaw avatar

Watchers

 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.