This repository shows a simple example of an offer generation system. This is implemented using both RESTful and Eventing styles of microservice architecture.
As a consumer I want to receive the best flight offers between Melbourne and Brisbane available to me. These offers should be personalised depending on my preferences. I can enter the following preferences
- Collect name and email - for marketing spam
- Level of Service (Full/Budget)
- If they are frequent flier
- Time of day
- http://nodejs.org/
- sudo npm install -g bower
- boot2docker
- cd ./frontend && bower install
- cd .. && cd ./backend/event && npm install
- cd ../.. && ./backend/restful && npm install
- boot2docker start
- export DOCKER_HOST=tcp://192.168.59.103:2376
- export DOCKER_CERT_PATH=/Users/braiden.judd/.boot2docker/certs/boot2docker-vm
- export DOCKER_TLS_VERIFY=1
- docker run -d -p 5672:5672 -p 15672:15672 -v :/data/log -v :/data/mnesia dockerfile/rabbitmq
- ./backend/event/startEvent.sh
- ./backend/event/startEvent.sh
- cd ./frontend && python -m "SimpleHTTPServer"
NOTE: You might need to change the IP in the services for event to your boot2docker ip. Use the command boot2docker ip
to find your IP.