Code for the web site https://www.unixtimesta.mp/.
Getting Started for Development
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.
Ensuring Code Quality
pipenv run nosetests pipenv run behave
pipenv run pycodestyle pipenv run pydocstyle find . -iname "*.py" | xargs pipenv run pylint
Note that Travis CI is set up to automatically run these when commits are pushed to GitHub. If any of them fail, you should be notified of it.
Icon adapted from http://openclipart.org/detail/192402/clock-icon-by-cinemacookie-192402.