Giter Site home page Giter Site logo

n8k8's Introduction

Getting Started

Prerequesits

  1. Dotnet 8 SDK & Aspire Workloads (minimum: 8.0.0-preview.7.24251.11/8.0.100)
  2. Node v.16 Minimum
  3. Docker Desktop with Kubernetes Enabled

Setup

## Install Aspire workload (update if necessary with dotnet workload update)
dotnet workload install aspire

## Install AZD CLI
winget install microsoft.azd

## Restore packages
dotnet restore

## Web project NPM installs
CD .\web

npm install

npm run buildcss ## optional file watcher with npm run buildcss-watch

## Local user secret setup
CD ..\.aspire\N8.Aspire.AppHost\

dotnet user-secrets set Parameters:messaging "{{REDACTED}}"

## Azure development environment setup
CD ..\..\

azd env new "{{ENVNAME}}"
#azd env select "{{ENVNAME}}" ## only needed after first env
azd env set AZURE_MESSAGING "{{REDACTED}}"

Build

## Builds container images
.\build.ps1

Run (K8s)

## Starts all deployments & services
.\run.ps1

Delete K8s Resources

## Deletes everything in K8s
kubectl delete all --all

Release via AZD CLI

azd up

Architecture

Web

  • Interactive Blazor Server application used to demonstrate tailwindcss UI components, API interactivity, message consumption via rabbitMQ, & real time server/client communication via SignalR.

API

  • Minimal API with sample TODO's endpoint.

Worker

  • Background service publishing RabbitMQ messages every 3 seconds.

Jobs

  • On demand kubernetes job examples for a dotnet console & Azure PowerShell application.

Others

Aspire

  • Used for local development of micro-services.

K8s

  • Houses all kubernetes deployment & service YAML definitions.

n8k8's People

Contributors

duffcloudservices avatar nduff-onestream avatar

Watchers

Nathan Duff 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.