With Docker it's easy, launch this command and PHP, Composer and MySql will be installed.
$ docker-compose up -dInstall Composer and theses dependencies
$ docker-compose run composer composer install# doctrine orm[command] [-options] [path-dest]
$ docker-compose run php php vendor/doctrine/orm/bin/doctrine orm:generate:entities --generate-annotations="true" ./
# Show the changements on your database
$ docker-compose run php php vendor/doctrine/orm/bin/doctrine orm:schema-tool:update
# Apply the changements
$ docker-compose run php php vendor/doctrine/orm/bin/doctrine orm:schema-tool:update --forceIf you want change database informations, you should change settings in the settings.php file and change informations in docker-compose.yml. After that, re-build your docker.
WARNING: Change these informations in the docker-compose.yml
# app/settings
#...
'connection' => [
'driver' => 'pdo_mysql',
'host' => 'mysql',
'dbname' => 'foodapi',
'user' => 'root',
'password' => 'root',
]
#...You should configure your endpoint in the front/src/enums/endpoint.ts file.
You can view your application in local when you enter this address localhost:1112