Skip to content

Shakedp/WebCourse

Repository files navigation

Web Calculator

Exercise for Web Development Course. Docker compose and code for a web calculator. Uses python3 only

Prerequisites

Project and tests:

  • python3
  • docker
  • docker-compose
  • chrome
  • chromedriver for selenium
git clone [email protected]:Shakedp/WebCourse.git
pip3 install -r requirements.txt

Run from dir

python3  ./server/server.py

Install

python3 setup.py install

Run with docker

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

Run with docker compose

docker-compose up

Tests

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

  1. Intall the server package (See the Install section).
  2. Install all the requirements.
  3. Run the server (docker-compose up)
  4. Run the tests.

Python requirements:

pip3 install -r requirements.test.txt

Run the tests:

cd tests
py.test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •