Skip to content

ludovit-ubrezi/symfony-ddd-docker-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

  1. Docker setup - wait till all containers are running
cd docker_symfony 
docker-compose up -d --build
  1. Run command to enter into docker console
docker-compose exec php /bin/bash
  1. Run command to install packages
composer install
  1. Update after composer.json changes
composer update
  1. Run command to create migrations after updating Models/Entities
symfony console doctrine:migration:diff | symfony console doctrine:migrations:generate
  1. Run command to run migration scripts
symfony console doctrine:migrations:migrate

First time run

  • Proceed steps 1. 2. 3. 6.

  • Go to http://localhost:8080/author/ and add one author

  • in code are all Author linked to row id 1(first user) due to excluded login functionality

  • not working without created user

  • After that go to http://localhost:8080/post/ and do your magic

  • all the links are self explanatory

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published