/SonataEasyAdminTest

Configuration bundle for Sonata Admin to configure simple CRUD controllers from a single configuration yml file.

Primary LanguagePHP

easy-sonata_admin

###Getting Started

  1. Clone Repo

  2. Update your vendors via Composer

composer install
  1. Copy your parameters.yml.dist file to parameters.yml and customize it
cp app/config/parameters.yml.dist app/config/parameters.yml
  1. Fix your permissions

See Setting up Permissions in the Symfony book.

$ HTTPDUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\  -f1`
$ sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX app/cache app/logs
$ sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX app/cache app/logs
  1. Build your database and load fixtures
app/console doctrine:database:create
app/console doctrine:schema:create
app/console doctrine:fixtures:load
  1. Install front-end dependencies

See Installing Bower

bower install ./vendor/sonata-project/admin-bundle/bower.json
  1. Install & dump assetic files
app/console assets:install --symlink
app/console cache:clear --env=dev
  1. Configure Web server and fire up application
app/console server:run

Username: admin Password: 1234