Bootstrap your app in 45 seconds

10
How to bootstrap your app in 45 seconds

description

 

Transcript of Bootstrap your app in 45 seconds

Page 1: Bootstrap your app in 45 seconds

How to bootstrap your app

in 45 seconds

Page 2: Bootstrap your app in 45 seconds

all you need i s

FormAlchemy

Page 3: Bootstrap your app in 45 seconds

fa.bootstrappyramid_formalchemy - Twitter Bootstrap

all you need i s

Page 4: Bootstrap your app in 45 seconds

$ pip install fa.bootstrap

$ paster create -t pyramid_fa_bootstrap myapp

$ cd myapp

$ python setup.py develop

$ paster serve development.ini

fa.bootstrap - paster script

★ five easy steps:

Page 5: Bootstrap your app in 45 seconds

fa.bootstrap

Page 6: Bootstrap your app in 45 seconds

fa.bootstrap

http://localhost:6543

Page 7: Bootstrap your app in 45 seconds

class MyModel(Base):    __tablename__ = 'models'    id = Column(Integer, primary_key=True)    name = Column(Unicode(255), unique=True)    value = Column(Integer)

★ model definition by

fa.bootstrap - demo app

Page 8: Bootstrap your app in 45 seconds

config.include('pyramid_formalchemy')config.include('fa.bootstrap')config.formalchemy_admin("/admin",                         models=models,                         forms=forms,                         session_factory=models.DBSession,                         view="myapp.forms.ModelView")

★ include it in your application

★ model definition by

fa.bootstrap - demo app

Page 9: Bootstrap your app in 45 seconds

fa.bootstrap - links

★pyramid_formalchemy docshttp://docs.formalchemy.org/pyramid_formalchemy

★downloadhttp://pypi.python.org/pypi/fa.bootstrap

★GitHub

https://github.com/RedTurtle/fa.bootstrap