My new blog here at www.mostovenko.com

Saturday, August 18, 2012

Launching Flask on Google App Engine (GAE)

In this article i want to highlight some aspects of launching flask framework on GAE platform. I have investigated some time in this platform, and came to conclusion that flask is a good choice for building web applications on Google App Engine platform because this framework is lightweight, flexible and doesn't relate to some special kind of data storage.
So let's get started!
For the beginning you must be familiar with basics of building GAE apps. If you are not - i suggest you to pass "get started" tutorials here (for python2.7). As Google App Engine has already good support for python2.7 i decided to show example based on this version, but  it has almost no differences with 2.5 version example.
Sources are available here

Tuesday, August 14, 2012

url_for for Spine.js

Recently i discovered a new wonderful language  - Coffeescript. As front page of Coffeescripts website says - "it's a little language that compiles into javascript". Good it's or not, but nowdays javascript and HTML5 are the most convenient tools for implementing rich client web application. And Coffeescript makes our life much easier.

Spine.js it's a great choice if you building your client side on coffeescript. It's written in coffeescript, it's source code is easy to read and understand. And another thing that i like in Spine.js - is that it can be easily extended.

And, after playing some time with it, i found that it misses one useful feature - possibility to generate url links dynamically =(. As in some python web frameworks, like Pylons, Flask or Django, when we know the name of controller and the action - we can generate url for some handlers in templates. I have not found how i can do this in Spine.js - so i decided to implement it by myself.