Skip to content

Example on how to create a asp.net core minimal api with a microservice architecture deployed with kubernetes.

License

Notifications You must be signed in to change notification settings

Pat-Riz/microservice-api-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Unnamed Project

Miniproject mostly to practice creating a microservice API.

Microservice architecture with Dotnet 6 minimal API with 2 services that can talk to each other with gRPC and via a pub/sub on a RabbitMQ bus.
Using kubernetes to setup all neccesarry network configuration.

A "Dummy" frontend created with React CRA mostly to practice with Tailwind CSS and not using a existing component library.

Functionality wise all it does is allow a user to see and create commands for diffrent platforms (Docker, kubernetes etc). In development it uses an in memory database otherwise it uses a MSSQL database with a persistant storage in kubernetes.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • .net 6
  • yarn
  • Docker
  • Kubernetes

Installing

Running in dev without kubernetes (except rabbitmq)

Starting backend

cd backend
kubectl apply -f rabbitmq-depl.yaml
dotnet run --project .\PlatformService\PlatformService.csproj
dotnet run --project .\CommandsService\CommandsService.csproj

Starting frontend

cd frontend
yarn install
yarn start

Built With

Roadmap

  • Create a Readme
  • Create a proper Docker container to run the frontend
  • Learn and use Helm charts to organize Kubernetes for the backend
  • Create a powershellscript in the root of repo to start both frontend and backend

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Example on how to create a asp.net core minimal api with a microservice architecture deployed with kubernetes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published