Skip to content
Snippets Groups Projects
Commit 9517aeb5 authored by nimrod's avatar nimrod
Browse files

More documentation.

parent 8efa1fff
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,44 @@ ...@@ -2,6 +2,44 @@
A Flask and Celery demo app. A Flask and Celery demo app.
## Requirements
- Docker
- Docker Compose
## Usage
Start the application and rebuild if necessary:
```
docker-compose up --build
```
Stop the application:
```
docker-compose down
```
Stop the application and delete volumes (starting from scratch):
```
docker-compose down -v
```
Start a Python interperter inside the Flask web server container:
```
docker-compose exec server python
```
Post a message to the Flask web server for the Celery worker to output:
```
curl -H "Content-Type: application/json" -X post -d '{"message": "foo"}' http://localhost:8080/log
```
## License ## License
This software is licensed under the MIT license (see `LICENSE.txt`). This software is licensed under the MIT license (see `LICENSE.txt`).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment