Code for the web site https://www.unixtimesta.mp/.
First, check out the code:
git clone https://github.com/craiga/unixtimesta.mp.git
cd unixtimesta.mp
Set up the project by creating a Pipenv virtual environment.
pipenv install --dev
You'll also need a self-signed SSL certificate. Heroku provide some instructions on how to do that.
Finally, run the the Flask development server and access the application in a web browser at https://localhost:5000.
FLASK_DEBUG=1 pipenv run flask run --cert server.crt --key server.key
Note that you'll need to configure your browser to allow for your self-signed certificate.
Code is formatted with black:
pipenv run black .
Run the test suite using nose and behave.
pipenv run nosetests
pipenv run behave
Test code quality with pydocstyle and pylint.
pipenv run pydocstyle
find . -iname "*.py" | xargs pipenv run pylint
Icon adapted from http://openclipart.org/detail/192402/clock-icon-by-cinemacookie-192402.