Exercise for Web Development Course. Docker compose and code for a web calculator. Uses python3 only
Project and tests:
- python3
- docker
- docker-compose
- chrome
- chromedriver for selenium
git clone [email protected]:Shakedp/WebCourse.git
pip3 install -r requirements.txt
python3 ./server/server.py
python3 setup.py install
docker build -t webcoursecalculator .
docker run -v $(pwd)/server:/server -p 3000:80 -w /server -i webcoursecalculator python3 server.py --host 0.0.0.0 --port 80
docker-compose up
There are three types of tests to this project - unit, integration & e2e, all written using pytest. In order to run the tests you need to
- Intall the server package (See the
Install
section). - Install all the requirements.
- Run the server (docker-compose up)
- Run the tests.
Python requirements:
pip3 install -r requirements.test.txt
Run the tests:
cd tests
py.test