Before you begin, ensure you have met the following requirements:
- A PHP server (PHP 8)
- A MySQL server
-
Install composer dependencies:
composer install --no-dev --optimize-autoloader
-
Install NPM packages and build assets:
npm install && npm run build
This step compiles the assets and places them in the
public
directory.
-
If the database already exists, run the following command to create tables from entities:
php bin/console doctrine:migrations:migrate
-
To load data into the database:
mysql -uroot -proot -h localhost aci < aci.sql
- Clear the cache to ensure optimal performance:
php bin/console cache:clear --env=prod --no-debug
After completing these steps, your application should be set up and ready for production use.