This repository is part of the assistance material of the asynchronous communication track with .NET Core, MassTransit and Rabbitmq, available on Youtube.
This repository is organized as follows:
Both complete and basic solution depend on mysql and rabbitmq. In the root of each solution there is a docker-compose.yml file with the configuration of both dependencies. Open a command prompt in the root of the directory containing the docker-compose.yml file and run the following command (it is necessary to have the docker installed):
docker-compose up -d
This will download the images from MySQL, Adminer (MYSQL's Admit) and RabbitMQ and climb the necessary containers. To see that containers are running correctly, run a docker ps or visit the MYSQL Adminer and Rabbitmq URLs:
With the premises properly running, just run Webapi. Open a command prompt within the /API directory and run dotnet run . The application should run normally and apply the database migrations that will create the required database and tables in MySQL.
Check that the API is running at port 5000 by accessing http: // localhost: 5000/swagger.