Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 1.02 KB

README.md

File metadata and controls

46 lines (35 loc) · 1.02 KB

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