Tested on the following
Dependencies | Versions |
---|---|
Python | 3.6.2 |
Virtualenv | 15.1.0 |
Couchbase | 4.5.1 |
RabbitMQ | 3.7.12 |
-
Create Python virtualenv
cd producer virtualenv --python=<$PATH_TO_PYTHON3.6> src_venv/
-
Activate virtualenv
source src_venv/bin/activate
-
Install python dependenices
pip install requirements.txt
-
Run resful API
cd resthooks_server python server.py
-
Run receiver/consumper script
cd resthooks_server/rest_api python receiver_logs_topic.py
-
Go swagger url
http://localhost:5000/amqp/ui/
-
Try out order POST
Tested on the following
Dependencies | Versions |
---|---|
Ubuntu | 16.04LTS |
-
Installing Repository
sudo apt-get update
-
Installing Packages
sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common
-
Add Docker’s official GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
-
Verify fingerprints:
sudo apt-key fingerprint 0EBFCD88
-
Use the following command to set up the stable repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
-
Update apt
sudo apt-get update
-
Install the latest version of Docker CE
sudo apt-get install docker-ce docker-ce-cli containerd.io
- Installing Docker Compose 1.2. sudo apt-get install docker-compose
- To run the server on a Docker container, please execute the following from the root directory:
# building the image docker build -t resthooks_server. # starting up a container docker run -p 8080:8080 resthooks_server
- Philip Sales - adopted work
This project is licensed under the Creative Commons- see the Types of Licenses