Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion api/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


class Room(object):
@inject(indexer=ElasticSearchIndex)
@inject
def post(self, indexer: ElasticSearchIndex, room: dict) -> dict:
"""
This wil return a location, kind of 'Camden, London'.
Expand All @@ -24,4 +24,5 @@ def post(self, indexer: ElasticSearchIndex, room: dict) -> dict:

return room, 201


class_instance = Room()
8 changes: 5 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,19 @@ services:
our-app:
build: .
environment:
- MODE=dev
- ELASTICSEARCH_HOST=127.0.0.1
- ELASTICSEARCH_HOST=elasticsearch
- ELASTICSEARCH_PORT=9200
volumes:
- .:/code
depends_on:
- elasticsearch
- rabbitmq
links:
- elasticsearch
- rabbitmq
ports:
- "9091:9090"

rabbitmq:
image: rabbitmq:3.6.1-management
environment:
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Flask
connexion
connexion[swagger-ui]
Flask-Injector
fastavro
elasticsearch
boto
boto