This is a Symfony-based project for managing an online shop.
- PHP 8.2 or higher
- Composer
- Symfony CLI (optional but recommended)
-
Clone the repository:
git clone git@github.com:faso-dev/symfony-master-class-tp-e-commerce.git cd symfony-shop
-
Install PHP dependencies:
composer install
-
Set up environment variables:
Copy the
.env
file and adjust the environment variables as needed:cp .env .env.local
-
Set up the database:
Update your database configuration in the
.env.local
file, then run:php bin/console doctrine:database:create php bin/console doctrine:migrations:migrate
-
Load fixtures:
php bin/console doctrine:fixtures:load
To start the Symfony server, run:
symfony serve
Then, open your browser and go to http://localhost:8000
.