Simple Symfony ReactJS App
- Edit hosts file C:\Windows\System32\drivers\etc\hosts
127.0.0.1 delivery.local
- Execute in this in terminal to create servers
docker-compose up -d
- Edit symfony .env file
DATABASE_URL=mysql://root:[email protected]:3306/delivery
- Go to database server container
docker exec -it databaseserver bash
- Login to MySQL
mysql --user=root --password=mysql
- Create Database
create database delivery;
- Exit MySQL
exit
- Exit database container
exit
- Go to web server container
docker exec -it webserver bash
- Go to symfony files
cd /var/www/html/app
- Install symfony plugins
composer install
- Migrate database schema
php bin/console doctrine:migrations:migrate
- Load fixtures
php bin/console doctrine:fixtures:load
- Populate react files
yarn encore production