Skip to content

ashleykmm1/partner-project1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

DND custom loot table small test program

This program demonstrates how RabbitMQ can be used to facilitate communication between a microservice and client. This uses AMQP (advanced messaging queuing protocol)

dnd_client.py: Sends request to microservice to create custom loot tables dnd_microservice.py: receives requests from client to create custom loot tables, stores data

How to run:

  1. Ensure RabbitMQ is installed and configured. This can be done from their official website
  2. Run both .py files (see how to run dnd_client.py below)
  3. Then it will be printed in a .json file, this will automcatically create a file

How to add custom: In terminal write this: python dnd_client.py add-loot --name "" --rarity "" --cost ___ Ex. python dnd_client.py add-loot --name "Sword" --rarity "Legendary" --cost 1000

How to read from json file: python dnd_client.py read-loot-tables

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages