Skip to content

A micro service app that translate English message to Morse code and publish the message to the queue.

Notifications You must be signed in to change notification settings

browniecode93/english-to-morse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

english-to-morse

A micro service app that translate English message to Morse code and publish the message to the queue.

Built With

  • Django Rest Framework
  • Flask
  • RabbitMQ

Getting Started

Clone the repo in your local machine.

Prerequisites

  • Install Docker Desktop

Usage

  • cd admin and run docker-compose up
  • cd consumer and run docker-compose up

CREATE message: POST http://localhost:8000/api/message including your message as { "eng_msg": "HOW ARE YOU TODA?" } Response will be the base64 encoded message and Morse code

LIST messages: GET http://localhost:8000/api/message will list all the messages that have been sent to the server Response will be the base64 encoded messages and Morse codes

GET a message: GET http://localhost:8000/api/message/id Response will be the base64 encoded message and Morse code

DELETE a message: DELETE http://localhost:8000/api/message/id

Each message will be sent to the consumer service via RabbitMQ, you will be able to see it on docker log each time you create a message

Sample:

consumer_service

encode_service

About

A micro service app that translate English message to Morse code and publish the message to the queue.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages