Setup
Prerequisite software: Docker
Creating a projects
Create a new console application project in a new folder using dotnet command.
Also, create a Web API project using the same folder for communicating with our Service. Then add both projects to the common solution.
Then we add the Cronus dependency.
This is the minimum set of packages for our Cronus host to work.
Run docker images
Setup Cassandra (Container memory is limited to 2GB):
docker run --restart=always -d --name cassandra -p 9042:9042 -p 9160:9160 -p 7199:7199 -p 7001:7001 -p 7000:7000 cassandra
Setup RabbitMq (Container memory is limited to 512MB):
docker run --restart=always -d --hostname node1 -e RABBITMQ_NODENAME=docker-UNIQUENAME-rabbitmq --name rabbitmq -p 15672:15672 -p 5672:5672 elders/rabbitmq:3.8.3
Setup configuration file
Add appsettings.json with the following configuration into the project folder.
You can also see how the Cronus application can be configured in more detail in Configuration.
F5
Last updated