Giter Site home page Giter Site logo

sandbox's Introduction

Sonata Standard Edition

What's inside?

Sonata Standard Edition comes pre-configured with the following bundles:

  • Bundles from Symfony Standard distribution
  • SonataAdminBundle - The missing Symfony2 Admin Generator
  • SonataMediaBundle
  • SonataPageBundle
  • SonataUserBundle
  • SonataEasyExtendsBundle
  • SonataIntlBundle
  • SonataNewsBundle
  • SonatajQueryBundle
  • FOSUserBundle

Installation

Run the following commands:

git clone http://github.com/sonata-project/sandbox.git sonata-sandbox
cd sonata-sandbox
rm -rf .git
git init
git add .gitignore *
git commit -m "Initial commit (from the Sonata Sandbox)"
curl -s http://getcomposer.org/installer | php
php composer.phar install
cp app/config/parameters.yml.sample app/config/parameters.yml
cp app/config/parameters.yml.sample app/config/validation_parameters.yml
cp app/config/parameters.yml.sample app/config/production_parameters.yml

Database initialization

At this point, the app/console command should start with no issues. However some you need the complete some others step:

  • database configuration (edit the app/config/parameters.yml file)

then runs the commands:

app/console doctrine:database:create
app/console doctrine:schema:create

Assets Installation

Your frontend still looking weird because bundle assets are not installed. Run the following command to install assets for all active bundles under public directory:

app/console assets:install web

ACL initialization

The sandbox use the ACL system as security handler. You must init it:

app/console init:acl
app/console sonata:admin:setup-acl
app/console sonata:admin:generate-object-acl

Sonata Page Bundle

By default the Sonata Page bundle is activated, so you need to starts 2 commands before going further:

app/console sonata:page:create-site --enabled=true --name=localhost --host=localhost --relativePath=/ --enabledFrom=now --enabledTo="+10 years" --default=true
app/console sonata:page:update-core-routes --site=all
app/console sonata:page:create-snapshots --site=all

Note

The update-core-routes populates the database with page from the routing information. The create-snapshots create a snapshot (a public page version) from the created pages.

Fixtures

To have some actual data in your DB, you should load the fixtures by running:

app/console doctrine:fixtures:load

Enjoy!

sandbox's People

Contributors

rande avatar taluu avatar koyaan avatar benoitleveque avatar emmanuelvella avatar dunglas avatar mbontemps avatar oparadis avatar pborreli avatar pluff avatar spolischook avatar tiagojsag avatar tamayg avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.