vladimir / compo-plan
Training symfony app based on compo-plan app
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.2
- doctrine/doctrine-bundle: ^1.6
- doctrine/doctrine-cache-bundle: ^1.2
- doctrine/doctrine-migrations-bundle: ^1.2
- doctrine/orm: ^2.5
- friendsofsymfony/user-bundle: ~2.0
- incenteev/composer-parameter-handler: ^2.0
- sensio/distribution-bundle: ^5.0
- sensio/framework-extra-bundle: ^3.0
- sonata-project/admin-bundle: ^3.16
- sonata-project/doctrine-orm-admin-bundle: ^3.1
- symfony/monolog-bundle: ^3.0
- symfony/polyfill-apcu: ^1.0
- symfony/swiftmailer-bundle: ^2.3
- symfony/symfony: ^3.4
- twig/twig: ^1.0||^2.0
Requires (Dev)
- sensio/generator-bundle: ^3.1
- symfony/phpunit-bridge: ^3.0
This package is auto-updated.
Last update: 2025-02-28 04:25:52 UTC
README
Docker and docker-compose are required to be installed
https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce
https://docs.docker.com/compose/install/#install-compose
Install via composer
composer create-project vladimir/compo-plan --stability dev
Install via GitHub
git clone git@github.com:comporu/compo-plan.git
install dependencies composer install
Start up containers
rights of the var/ directory must be 777 before
docker-compose up
in a new terminal
or
docker-compose up -d
in a same terminal (Detached mode: Run containers in the background)
Create DB
docker container exec compo-plan-php php bin/console doctrine:schema:update --force
Create super user
docker container exec compo-plan-php php bin/console fos:user:create root --super-admin test@test.ru 11111111
this command will create super user with login root and password 11111111
Welcome
Type http://localhost:8585/app_dev.php in browser address bar
Dashboard login/pass are as you created on previous step:
login: root
pass: 11111111
Notes
parameters.yml.dist
parameters.yml.dist
has been configured for working with docker mysql container
Leave default database parameters while installing dependencies with composer
Rights
var/cache var/sessions var/logs folders required to have 777 rights
Docker
start up containers
docker-compose up
docker-compose up --build
shut down containers
docker-compose down
delete all containers with cache and networks
docker system prune -a
Console commands
Since we are in docker containers, we need to run console commands in php container.
So ours lovely command php bin/console <whatever>
must be turned to
docker container exec compo-plan-php php bin/console <whatever>
compo-plan-php is an alias for ours php container. see docker-compose.yml