Habrhabr proxy
Tested for python 3.5, linux ubuntu.
Run tests:
# activate virtualenv and run:
pip3 install -r requirements.txt
python3 -m unittest discover
Start with virtualenv:
# activate virtualenv and run:
pip3 install -r requirements.txt
gunicorn -w 4 -b 0.0.0.0:8080 server:app
Start with docker container:
sudo docker build -t habr-proxy .
sudo docker run --name habr-proxy -p 8080:8080 -it habr-proxy:latest
or
./startup_docker.sh
Start, stop container:
sudo docker start habr-proxy
sudo docker stop habr-proxy
http://localhost:8080
Check it out onFor example: