Demo app using the LemonRestBundle
JavaScript CSS PHP HTML ApacheConf Shell Other
Permalink
Failed to load latest commit information.
.openshift
app Trying it this way instead May 25, 2015
src/Lemon/Model The demo bundle is serious overkill for this, so strip it down to the… Feb 25, 2015
web
.bowerrc Experimenting with using ng-admin for the demo Oct 3, 2014
.gitignore
LICENSE
README.md Updated README to mention NgAdminGeneratorBundle May 25, 2015
bower.json Updating to latest LemonRestBundle and ng-admin dependencies May 25, 2015
composer.json
composer.lock Updating to latest LemonRestBundle and ng-admin dependencies May 25, 2015

README.md

LemonRestBundle Demo App

This is a symfony standard edition application using the LemonRestBundle and ng-admin to show easy it is to create a simple REST api. For more information please consult the bundle's documentation.

This application is deployed to http://restdemo-stanlemon.rhcloud.com if you'd like to see it in action. The database is reset every minute.

Or try it out yourself...

composer.phar install
php -S localhost:8383 -t ./web/

Then hit http://localhost:8383 in your browser and enjoy!

The configuration for ng-admin was generated using NgAdminGeneratorBundle written by jpetitcolas you can check this out by running the following command:

./app/console ng-admin:configuration:generate > ./web/js/config.js

You will need to edit the bottom of ./web/js/config.js to set the base uri and application title, like so:

var admin = NgAdminConfigurationProvider
    .application('LemonRestBundle Demo')
    .baseApiUrl(location.protocol + '//' + location.hostname + (location.port ? ':' + location.port : '') + '/app.php/api/')