Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/carteni/sonata-distribution

The aim of this distribution is to supply a skeleton to start working with some bundles of Sonata already configured.
https://github.com/carteni/sonata-distribution

php skeleton symfony symfony-skeleton

Last synced: 1 day ago
JSON representation

The aim of this distribution is to supply a skeleton to start working with some bundles of Sonata already configured.

Awesome Lists containing this project

README

        

Sonata-Project Distribution (SF 3.3)
====================================

The aim of this distribution is to supply a skeleton to start working with some bundles
of Sonata already configured.
At the moment supplies an integration with Sonata Admin, Sonata Classification and
Sonata Media bundles.

**This project is experimental!**

Installation
============

1. Clone repository and generate a secret in parameters.yml.

2. Update vendors.
```
$ composer update
```

3. Create database.
```
$ bin/console doctrine:database:create
```

4. Update schema.
```
$ bin/console doctrine:schema:update --force
```

5. Fix Sonata contexts.

This distribution defines 2 contexts: _default_ e _media_ under `sonata_media` config
in `src\AppAdminBundle\Resources\config\config.yml`
```
$ bin/console sonata:classification:fix-context
$ bin/console sonata:media:fix-media-context
```

6. Clear cache and install assets
```
$ bin/console cache:clear
$ bin/console assets:install
```

7. Create and promote user to ROLE_SUPER_ADMIN.
```
$ bin/console fos:user:create
$ bin/console fos:user:promote
```

8. Add uploads/media folder under web folder
```
$ mkdir web/uploads
$ mkdir web/uploads/media
$ chmod -R 0777 web/uploads
```

9. Visit the admin page on `/admin/dashboard`.

Screenshots:

1. [Dashboard][1]
2. [Media / List][2]
3. [Category / Tree][3]
4. [Category / Edit][4]
5. [Post / Edit (SonataMediaBundle and CKEditor integration)][5]

###### ♥ ☕ m|e|s

[1]: http://www.multimediaexperiencestudio.it/github/sonata-distribution/screen_01.png
[2]: http://www.multimediaexperiencestudio.it/github/sonata-distribution/screen_02.png
[3]: http://www.multimediaexperiencestudio.it/github/sonata-distribution/screen_03.png
[4]: http://www.multimediaexperiencestudio.it/github/sonata-distribution/screen_04.png
[5]: http://www.multimediaexperiencestudio.it/github/sonata-distribution/screen_05.png