Home - daddeJ/user-auth-microservices GitHub Wiki
user-auth-microservices
A .NET-based microservices project with separate User and Authentication services. Includes Docker setup and Azure DevOps CI/CD pipelines for easy deployment and scalability.
Overview
user-auth-microservices is a scalable microservices-based platform built using .NET technologies, focused on centralized user management and authentication services.
This project follows clean architecture principles and standard coding practices such as SOLID, separation of concerns, and TDD. It features:
- ๐ A dedicated User Service for handling general user information across multiple systems
- ๐ A standalone Authentication Service to manage credentials, tokens, and identity flows
- ๐ฆ Dockerized services for local and cloud deployments
- ๐ CI/CD pipelines using Azure DevOps for streamlined testing and delivery
- ๐งช Integrated unit testing and validation logic for maintainability
It is built to be extensible, allowing you to plug this into systems like:
- ๐ Library Management Systems
- ๐งพ Visitor/Attendance Tracking Systems
- ๐ข Admin Portals and Internal Tools
Project Structure
user-auth-microservices/
โ
โโโ user-service/ # โ
Centralized user info (name, email, etc.)
โ โโโ src/
โ โ โโโ Domain/ # Entities, ValueObjects, Enums
โ โ โโโ Application/ # Use cases (CreateUser, GetUser)
โ โ โโโ Infrastructure/ # EF Core setup, DbContext, Repos
โ โ โโโ Api/ # Controllers, DTOs
โ โโโ tests/ # Unit + integration tests
โ โโโ Dockerfile
โ โโโ azure-pipelines.yml
โ
โโโ auth-service/ # ๐ JWT-based auth (login, register, token)
โ โโโ src/ # Same DDD layout
โ โโโ tests/
โ โโโ Dockerfile
โ โโโ azure-pipelines.yml
โ
โโโ tracking-service/ # ๐ Logs check-in, check-out, activity history
โ โโโ src/
โ โ โโโ Domain/ # CheckInRecord entity
โ โ โโโ Application/ # Use cases: LogCheckIn, LogCheckOut
โ โ โโโ Infrastructure/ # DB persistence
โ โ โโโ Api/ # POST /checkin, /checkout, GET /logs
โ โโโ tests/
โ โโโ Dockerfile
โ โโโ azure-pipelines.yml
โ
โโโ admin-portal/ # ๐ฅ Angular frontend for staff dashboard
โ โโโ frontend/ # Auth, user list, activity viewer
โ โโโ Dockerfile
โ โโโ azure-pipelines.yml
โ
โโโ docker-compose.yml # Local orchestration (services + DBs)
โโโ README.md
โโโ docs/
โ โโโ architecture-diagram.png
โ โโโ sequence-diagram.png
โ โโโ user-service-contract.md