https://github.com/ryanfreckleton/kiloblog
A blog in 1024 bytes of code
https://github.com/ryanfreckleton/kiloblog
flask hypothesis-testing pytest python
Last synced: about 1 month ago
JSON representation
A blog in 1024 bytes of code
- Host: GitHub
- URL: https://github.com/ryanfreckleton/kiloblog
- Owner: ryanfreckleton
- License: isc
- Created: 2018-03-16T20:16:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-01T18:23:03.000Z (almost 8 years ago)
- Last Synced: 2025-04-02T04:14:54.405Z (about 1 year ago)
- Topics: flask, hypothesis-testing, pytest, python
- Language: Python
- Size: 833 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
KiloBlog
========
A simple blog engine written in 1024 bytes of minified, gzipped python code.
- https://github.com/ryanfreckleton/kiloblog
Designed primarily as a starting point for others to expand on and teaching tool.
Non-python code also needs to be 1024 bytes when minified.
Libraries through CDN or installable from PyPI don't count towards the limit.
Tests, configuration, build files, etc. don't count towards this limit.
So this means:
- Python [gzipped/minified] 1 kilobyte
- Templates [gzipped/minified] 1 kilobyte
Total: 2 kilobytes
Quick Start
-----------
~~~
$ pip install -r requirements.txt
$ . scripts/activate
$ metrics
Python 1018
HTML 1020
$ flask run
* Serving Flask app "kiloblog"
* Forcing debug mode on
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* Restarting with stat
* Debugger is active!
* Debugger PIN: 000-000-000
~~~
Modify setup.cfg as appropriate before deploying, **take special mind to change the password and secret key.**
Developing
----------
Development requirements are in `requirements-dev.txt` and tests are run with `py.test`
Statistics:
-----------
- Python — 1018/1024 [99%]
- HTML — 1020/1024 [**100%**]
Author
------
- Ryan E. Freckleton
License
-------
See the [LICENSE](LICENSE) file for details