Skip to content

Sample code for the Pluralsight DDD Fundamentals course by Julie Lerman and Steve "ardalis" Smith

License

Notifications You must be signed in to change notification settings

Schreili/pluralsight-ddd-fundamentals

Repository files navigation

Pluralsight DDD Fundamentals Sample

Sample code for the Pluralsight DDD Fundamentals course (coming soon) by Julie Lerman and Steve "ardalis" Smith. If you are looking for the .NET Framework sample from the original 2014 DDD Fundamentals course, it's available as the ddd-vet-clinic sample.

Give a Star! ⭐

If you like or are using this project to learn, please give it a star. Thanks!

Running the Sample

The easiest way to run the sample is using docker. Download the source and run this command from the root folder:

docker-compose build
docker-compose up

This will start RabbitMQ (for messaging between apps) and build and run each of the applications involved in the sample:

  • FrontDesk.Api
  • FrontDesk.Blazor
  • ClinicManagement.Api
  • ClinicManagement.Blazor
  • VetClinicPublic

It also adds the following supporting containers:

  • RabbitMQ with Management
  • FrontDesk SQL Server
  • ClinicManagement SQL Server
  • Test Mailserver (Papercut)

Once running, you should be able to access the various apps using localhost (HTTP not HTTPS because of Kestrel configuration restrictions) and the following ports (you can also find these bindings in the docker-compose.yml file):

Service (in docker) Localhost Port Visual Studio Port
FrontDesk (main app) 5100 5150
ClinicManagement 6100 6150
VetClinicPublic 7100 7150
FrontDesk API / Swagger 5200 5250
ClinicManagement API / Swagger 6200 6250
RabbitMQ Management 15673 15672
RabbitMQ Service (5673) 5673
Papercut Management 37409 37408
Papercut SMTP (25) 25

Visual Studio

Running the sample from Visual Studio requires some additional setup. You will need to run multiple solutions side by side. You will also need to run RabbitMQ, ideally as a docker image, which you can so using this command:

docker run --rm -it --hostname ddd-sample-rabbit -p 15672:15672 -p 5672:5672 rabbitmq:3-management

You should be able to open localhost:15672 to view RabbitMQ management interface (login as guest/guest).

rabbitmq management app

When new appointments are created, confirmation emails are sent out to clients. Start a test mailserver using this command (learn more):

docker run --name=papercut -p 25:25 -p 37408:37408 jijiechen/papercut:latest

You should be able to open localhost:37408 to view Papercut test mailserver management interface, where sent emails will appear.

Papercut management app

Architecture Notes

Deveoper Notes

Credits

This sample is from Julie Lerman and Steve Smith's Pluralsight course. The original sample was written for .NET Framework by Steve. The current .NET 5 version was initially ported with the help of Shady Nagy. Progress Software provided the Blazor Scheduler control used to display the clinic's schedule. Additional credits include:

  • TBD

About

Sample code for the Pluralsight DDD Fundamentals course by Julie Lerman and Steve "ardalis" Smith

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 61.6%
  • C# 34.9%
  • HTML 3.1%
  • Other 0.4%