Web site for converting Unix timestamps into human-readable dates
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
features
tests
unixtimestamp
.env
.gitignore
.locales
.pylintrc
.travis.yml
CODE_OF_CONDUCT.markdown
LICENSE
Pipfile
Pipfile.lock
Procfile
README.mdown
app.json
config.py
runtime.txt
setup.cfg

README.mdown

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

Build Status Requirements Status Test Coverage Maintainability

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

The most important way to ensure code quality is to run the test suite with nose and behave.

pipenv run nosetests
pipenv run behave

Setting up this project will install pycodestyle, pydocstyle and Pylint. These help test for adherance to PEP 8, PEP 257 and other generally-accepted best Python coding practices.

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.

Credits

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

Reporting Issues

Report bugs, issues and requests through GitHub.