[ PHP/Symfony 5 Services Workshop - Work base repository ]
Workshop instructions: https://wildcodeschool.github.io/workshop-php-symfony-services/
- Clone this project
- run
yarn install && composer install
- in root foler,
cp .env .env.local
and configure yourDATABASE_URL
- run
php bin/console doctrine:database:create
- run
php bin/console doctrine:migration:migrate
- run
php bin/console doctrine:fixtures:load
This will populate your database with cities data.
Note: Cities Data are parsed from src/DataFixtures/worldcities_dataset.csv
file.
Should you insert more cities in database, just update const LIMIT = 20
in src/DataFixtures/CityFixtures.php
file.
Name | Method | Scheme | Host | Path |
---|---|---|---|---|
city_index | GET | ANY | ANY | /city/ |
city_new | GET|POST | ANY | ANY | /city/new |
city_show | GET | ANY | ANY | /city/{id} |
city_edit | GET|POST | ANY | ANY | /city/{id}/edit |
city_delete | DELETE | ANY | ANY | /city/{id} |
default | ANY | ANY | ANY | / |