Flask application, with Celery, Redis running inside Docker microservices.
To run the application, follow the steps below:
$ git clone https://github.com/demetriushenry/cesarlabs.git
$ cd cesarlabs/$ sudo docker-compose up -d- Open Browser and insert the following URL bellow:
- Place the morse code in the text area.
- Click the Decode button.
- Check the output.
$ curl -X POST -H "Content-Type: application/json" -d '{"code":".. .- -- .... .. .-. . -.."}' http://localhost:5000/api/morse_decodeYou can use the Postman app to test the endpoint: http://localhost:5000/api/morse_decode
$ sudo docker-compose run app python -m unittest tests/test_decode_code.py$ sudo docker-compose stop
or
$ sudo docker-compose down -v