<commit_before># Flask-Blog

Project still in early stages. Some future plans involves tags, admin roles, test for views, public author profile, syntax highlighting for code snippets, better comment system and image
upload.

## Install

### Download

    $ git clone git://github.com/mharrys/flask-blog.git
    $ cd flask-blog

### Python Packages

Click [here](http://www.pip-installer.org/en/latest/index.html) for more information on using pip and installing a virtual environment.

    $ virtualenv venv
    $ source venv/bin/activate
    (venv)$ pip install -r requirements.txt

### Initialize

The following command will create all tables and fill the database with dummy blog posts.

    (venv)$ python manage.py init

Additional commands are<commit_msg>Add information for latest changes<commit_after># Flask-Blog

Project still in early stages. 

### Backend
The application now features a [RESTful](https://en.wikipedia.org/wiki/Representational_state_transfer) API backend for all administration tasks which is controlled by the administration application written in Javascript with [Backbone.Marionette](http://marionettejs.com), [RequireJS](http://requirejs.org) and [Moment.js](http://momentjs.com). The visual is prototyped with [Bootstrap](http://twitter.github.io/bootstrap).

The authorization is for now being done with HTTP Basic and should **only** be used over SSL. Every request sent to the server API requires valid authorization header. The [Backbone.BasicAuth](https://github.com/fiznool/backbone.basicauth) library is used to help set this header, however this project is using a [fork](https://github.com/mharrys/backbone.basicauth) for now.

### Frontend
The public frontend is still written like any traditional Flask application without any need for Javascript. The visual is written from the ground up with [Sass](http://sass-lang.com) and [Susy](http://susy.oddbird.net).

### Future
Some future plans involves tags, admin roles, test for views, public author profile, syntax highlighting for code snippets, better comment system and image upload.

Its known that the dates are displayed wrong in the administration application.


## Install

### Download

    $ git clone git://github.com/mharrys/flask-blog.git
    $ cd flask-blog

### Python Packages

Click [here](http://www.pip-installer.org/en/latest/index.html) for more information on using pip and installing a virtual environment.

    $ virtualenv venv
    $ source venv/bin/activate
    (venv)$ pip install -r requirements.txt

### Initialize

The following command will create all tables and fill the database with dummy blog posts.

    (venv)$ python manage.py init

Additional commands are
{'fraction_non_alphanumeric': 0.08816964285714286, 'fraction_numerical': 0.0, 'mean_word_length': 4.410462776659959, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '693765', 'n_tokens_mistral': 730, 'n_tokens_neox': 693, 'n_words': 296}