Skip to content

πŸ“– TutorialsΒΆ

Learn Neuroglia by building real applications step-by-step.

πŸ• Mario's Pizzeria - Complete Tutorial SeriesΒΆ

Build a production-ready pizza ordering system from scratch. This comprehensive 9-part tutorial teaches you everything you need to know about building applications with Neuroglia.

What You'll Build: A complete pizza ordering and management system with:

  • REST API with CRUD operations
  • Clean architecture with proper layer separation
  • CQRS pattern for commands and queries
  • Event-driven features with domain events
  • MongoDB persistence with repository pattern
  • OAuth2 authentication with Keycloak
  • Distributed tracing with OpenTelemetry
  • Docker deployment

Prerequisites: Complete the Getting Started guide first to understand the basics.


Tutorial PartsΒΆ

Part 1: Project Setup & StructureΒΆ

Learn: Project organization, dependency injection, application bootstrapping

β†’ Start Part 1: Project Setup


Part 2: Domain ModelΒΆ

Learn: Domain-Driven Design, entities, value objects, business rules

β†’ Continue to Part 2: Domain Model


Part 3: Commands & Queries (CQRS)ΒΆ

Learn: CQRS pattern, command handlers, query handlers, mediator

β†’ Continue to Part 3: CQRS


Part 4: API ControllersΒΆ

Learn: REST APIs, FastAPI integration, DTOs, request/response handling

β†’ Continue to Part 4: API Controllers


Part 5: Events & IntegrationΒΆ

Learn: Domain events, event handlers, event-driven architecture

β†’ Continue to Part 5: Events


Part 6: Persistence & RepositoriesΒΆ

Learn: Repository pattern, MongoDB integration, data access layer

β†’ Continue to Part 6: Persistence


Part 7: Authentication & AuthorizationΒΆ

Learn: OAuth2, Keycloak integration, JWT tokens, role-based access

β†’ Continue to Part 7: Authentication


Part 8: ObservabilityΒΆ

Learn: OpenTelemetry, distributed tracing, metrics, structured logging

β†’ Continue to Part 8: Observability


Part 9: DeploymentΒΆ

Learn: Docker containers, docker-compose, production configuration

β†’ Continue to Part 9: Deployment


πŸ“š What You'll LearnΒΆ

Architecture & DesignΒΆ

  • Clean Architecture - Layer separation and dependency rules
  • Domain-Driven Design - Rich domain models with business logic
  • CQRS - Command Query Responsibility Segregation
  • Event-Driven Architecture - Domain events and eventual consistency

Framework FeaturesΒΆ

  • Dependency Injection - Service registration and lifetime management
  • Mediator Pattern - Decoupled request handling
  • Repository Pattern - Abstract data access
  • Pipeline Behaviors - Cross-cutting concerns

InfrastructureΒΆ

  • MongoDB - Document database integration
  • Keycloak - Authentication and authorization
  • OpenTelemetry - Observability and monitoring
  • Docker - Containerization and deployment

🎯 Learning Path¢

  1. Getting Started - Understand the basics (30 min)
  2. Tutorial Parts 1-3 - Core architecture and patterns (4 hours)
  3. Tutorial Parts 4-6 - API and persistence (4 hours)
  4. Tutorial Parts 7-9 - Security and deployment (4 hours)

Alternative PathsΒΆ

Already know Clean Architecture? β†’ Skip to Part 3: CQRS

Just want to see the code? β†’ Check the complete sample

Need specific features? β†’ Jump to relevant parts (each part is self-contained)


πŸ’‘ Tips for SuccessΒΆ

  1. Code along - Type the examples yourself, don't just read
  2. Experiment - Modify the code and see what happens
  3. Take breaks - Each part takes ~1-2 hours, pace yourself
  4. Use Git - Commit after each part to track progress
  5. Ask questions - Open issues if something isn't clear

πŸš€ Ready to Start?ΒΆ

Begin with Part 1: Project Setup to create your Mario's Pizzeria application!

Already completed the tutorial? Check out: