I want to learn how to use microservices of .netcore API and .NETCORE MVC using ef , JWT auth and make all services communicate with each other using docker .Please use angular 20 or 19 to and msSQL for database. Please share the full deployment steps on Azuree cloud or aws cloud.
Loading
Tuhin PaulPosted Sep 6, 2025, 6:22 PM
I hope this image clarifies your query. let me know if anything specific you are looking for.
Tuhin PaulPosted Sep 6, 2025, 6:20 PM
You can implement the whole stack locally with
docker compose, then lift-and-shift the same containers to Azure Container Apps / AKS or AWS ECS / EKS. A successful microservices architecture relies on separation of concerns and independent deployment. Each service should have its own codebase, database, and be responsible for a single, well-defined function.Akshita ZarbadePosted Sep 6, 2025, 5:45 AM
MicroservicesDemo – Developer-Friendly Guide
This guide is designed for developers to understand, run, and deploy a .NET Core microservices project with Angular frontend, JWT authentication, and Docker setup, ready for Azure deployment.
Project Structure
Backend Services (C# .NET Core)
UserService : register/login endpoints, JWT token issuance
ProductService : CRUD endpoints for products
OrderService : CRUD endpoints for orders, calls ProductService via HTTP
EF Core : each service has its own MS SQL database for persistence
Angular Frontend (v20)
Login page stores JWT in localStorage
Product page lists products and supports Add/Edit/Delete
Communicates with backend APIs using JWT authentication
Dockerfile (production build) :
Docker Setup
docker-compose.yml :
Run locally:
docker-compose up --buildAzure Deployment Steps
Step 1: Create Resources
Step 2: Push Docker Images to ACR
Step 3: Deploy Services
Step 4: Configure Environment Variables
Minimal Working Code Snippets
UserService
Models/User.cs
Data/UserDbContext.cs
Controllers/UserController.cs
ProductService
Models/Product.cs
Controllers/ProductController.cs
OrderService
Minimal CRUD endpoints similar to ProductService
Can use
HttpClientto validate product IDs from ProductServiceMicroservicesDemo – Developer-Friendly Guide
This guide is designed for developers to understand, run, and deploy a .NET Core microservices project with Angular frontend, JWT authentication, and Docker setup, ready for Azure deployment.
Project Structure
Backend Services (C# .NET Core)
UserService : register/login endpoints, JWT token issuance
ProductService : CRUD endpoints for products
OrderService : CRUD endpoints for orders, calls ProductService via HTTP
EF Core : each service has its own MS SQL database for persistence
Angular Frontend (v20)
Login page stores JWT in localStorage
Product page lists products and supports Add/Edit/Delete
Communicates with backend APIs using JWT authentication
Dockerfile (production build) :
Docker Setup
docker-compose.yml :
Run locally:
docker-compose up --buildAzure Deployment Steps
Step 1: Create Resources
Step 2: Push Docker Images to ACR
Step 3: Deploy Services
Step 4: Configure Environment Variables
Minimal Working Code Snippets
UserService
Models/User.cs
Data/UserDbContext.cs
Controllers/UserController.cs
ProductService
Models/Product.cs
Controllers/ProductController.cs
OrderService
Minimal CRUD endpoints similar to ProductService
Can use
HttpClientto validate product IDs from ProductService