https://habr.com site web proxy
Very basic implementation of initial task with following limitations:
- Proxies only GET requests
- Login/Register pages misses styles
- PEP8 maximum line length not met
Installation / startup
If docker installed:
- docker build --tag=habr_proxy .
- docker run -p 8080:8080 habr_proxy
- Open browser on http://127.0.0.1:8080
To run tests inside container:
- docker build -f Dockerfile.test --tag habr_proxy_tests .
- docker run habr_proxy_tests
If no docker installed :( :
- Make virtualenv with python 3.7
- pip install -r requirements.txt
- Run python -m aiohttp.web -H 0.0.0.0 -P 8080 proxy:init_app
- Open browser on http://127.0.0.1:8080
To run tests:
- Run python tests.py