Code for the web site https://www.unixtimesta.mp/.
Getting Started for Development
Set up the project by creating a Pipenv virtual environment.
pipenv install --dev
Install the required NPM packages and build the client-side assets (note that a Sass build is done automatically as part of the install).
Finally, run the the Flask development server and access the application in a web browser at http://localhost:5000.
FLASK_DEBUG=1 pipenv run flask run
If you make changes to the SCSS files, you can rebuild the CSS using the following command:
npm run sass -- scss/:unixtimestamp/static/css/
Ensuring Code Quality
Code is formatted with black:
pipenv run black .
pipenv run pytest pipenv run behave
Test code quality with pylint.
find . -iname "*.py" | xargs pipenv run pylint
Icon adapted from http://openclipart.org/detail/192402/clock-icon-by-cinemacookie-192402.