Skip to content

Web site for converting Unix timestamps into human-readable dates

License

Notifications You must be signed in to change notification settings

craiga/unixtimesta.mp

Repository files navigation

Code for the web site https://www.unixtimesta.mp/.

Build Status Test Coverage Maintainability Code style: black

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

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

Credits

Icon adapted from http://openclipart.org/detail/192402/clock-icon-by-cinemacookie-192402.

Reporting Issues

Report bugs, issues and requests through GitHub.