This is a demo for a single page application implemented with Symfony as the REST backend and chaplin.js as the frontend.
This setup adds the following bundles to the standard-edition of Symfony:
- FOSUserBundle
- FOSRestBundle
- FOSOAuthServerBundle
- FOSJSRoutingBundle
- JMSSerializerBundle
- SonataSEOBundle
The purpose of this app is to demonstrate the following concepts:
- Providing a REST backend for a backbone.js / chaplin frontend
- Securing the REST backend using oauth2 2-legged authentication
- Reusing Symfony routes for the chaplin router to make full use of Symfonys environment concepts [prod/dev/etc]
- Reusing serverside rendered markup from 3rd party bundles (e.g. FOSUserBundle login-form)
- Provide SEO metadata for the initial page markup for public facing websites
curl -s https://getcomposer.org/installer | php && ./composer.phar install
php app/console doctrine:database:create
php app/console doctrine:schema:create
php app/console doctrine:fixtures:load
- Create a virtualhost
http://bookstore.local
pointing the DocRoot to theweb
folder - Access
http://bookstore.local
. - Login with user
chaplin
passwordsymfony