- PHP >= 7.3
- Symfony 4.4
- MariaDB 10.3
- Node & NPM
- Composer
- Yarn
1. Install Symfony + Sonata platform
# 1.0 Install sonata platform
git clone https://github.com/john-dufrene-dev/sonata-platform.git
# 1.1 Edit your .env
cp .env.example .env
# 1.2 Install packages DEV
composer install && npm install && yarn encore production
# 1.3 Install database
php bin/console doctrine:migrations:migrate
# 1.4 Insert fixtures
php bin/console doctrine:fixtures:load
# 1.5 Build values in cache
php bin/console cache-app:rebuild
# 1.6 Modify user admin
Go to admin and modify default admin (login: admin / pass: admin)
# 1.7 generate the SSH keys for api
mkdir -p config/jwt # if not exist
openssl genpkey -out config/jwt/private.pem -aes256 -algorithm rsa -pkeyopt rsa_keygen_bits:4096
openssl pkey -in config/jwt/private.pem -out config/jwt/public.pem -pubout
# 1.8 generate route js builder
php bin/console fos:js-routing:dump --format=json --target=assets/js/front/config/utils/router/routes.json
2. Use symfony serve
If you are in local env, install symfony console commands and use php bin/console symfony serve
https://symfony.com/doc/current/setup/symfony_server.html
1. Todo list
- Create Media CRUD Controller Admin
- Upload Api platform
- Custom CRUDController in sonata admin for SEO
- All missing translations (IN PROGRESS)
- Custom Media and User CSS
- Finish all api for user (IN PROGRESS)
- Create Command to install project (IN PROGRESS)
- Create Fixtures for user/admin (IN PROGRESS)
- SEO default pages (IN PROGRESS)
- Remove all service "public: true" (IN PROGRESS)
- Create new extensions system enable/disable (IN PROGRESS)
2. Finish todo list
- ~~Encrypt password for Api platform~~
- ~~Default send mails with gmail~~
- ~~Change User CRUD Controller Admin~~
- ~~Create table configuration/fixtures~~
- ~~Create Maintenance system~~
1. Troubleshooting
- To upload youtube video https is required (Google API)
- Error return JSON response when upload media in CKEditorType ref: "#1" in 'App\Controller\Admin\Media\CustomUploadCKEditorController'
- Return just one toaster in template 'bundles\SonataTwigBundle\FlashMessage\render.html.twig' : @todo
2. Using dev version for
- sonata-project/admin-bundle
- sonata-project/media-bundle
- sonata-project/seo-bundle
- sonata-project/doctrine-orm-admin-bundle
3. Suggested packages
- simplethings/entity-audit-bundle
- sonata-project/google-authenticator