This is a simple python web application for displaying current Moscow time on page load. Written in Flask and contained in Docker.
Mount the virtual environment and install the packages.
python -m venv venv
pip install -r requirements.txt
There are several ways to run the app:
# direct python launch
python main.py
# or running the flask
flask run
# or building the docker image
docker build -t inno-f21-doe:latest .
docker run -d -p 5000:5000 inno-f21-doe:latest
/
: Displays the current time in Moscow./visits
: Displays the number of visits to the app.
Unit tests are present:
python -m pytest
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.