Giter VIP home page Giter VIP logo

cs361_microservice's Introduction

CS361_Microservice

Recipe Management Microservice

This microservice allows clients to interact with a recipe management system over ZeroMQ. Clients can view, save, and remove recipes stored in a local text file through simple commands.

Prerequisites

Python 3.x installed on your system. ZeroMQ library (pyzmq) installed. You can install it via pip: Copy code pip install pyzmq

Getting Started

Clone this repository to your local machine or download the files directly.

Open a terminal window and navigate to the directory containing the microservice files.

Run the server:

Copy code python microservice.py

Open another terminal window and navigate to the same directory.

Run the client:

Copy code python client.py

Usage

Once both the server and client are running, you can use the client to interact with the microservice using the following commands:

View Recipes: Lists all recipes currently stored in the system. socket.send_string("VIEW") to the microservice will return all the recipes stored.

Save Recipe: Adds a new recipe to the system. socket.send_string(f"SAVE {recipe}") to the microservice will save the new recipe.

Remove Recipe: Deletes a recipe from the system. socket.send_string(f"REMOVE {recipe}") to the microservice will remove the recipe.

Exit: Quits the client application.

Follow the prompts on the client side to select an action and provide necessary inputs such as recipe name.

Notes

Recipes are stored in a local text file named recipes.txt. Each recipe should be on a separate line in the text file.

UML Diagram

UML Diagram

Contributors

Ali A

License

This project is licensed under the MIT License.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.