OpenClassrooms project for "PHP / Symfony" course.
The objective is to improve an existing application build with Symfony 3.1.6 and Bootstrap 3.3.7.
- Symfony 4.3.3
- Bootstrap 3.3.7
1 - Clone or download the project
https://github.com/JeanD34/p8-sf4.git
2 - Update your database identifiers in project/.env
DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name
3 - Install composer -> Composer installation doc
4 - Run composer.phar to install dependencies
php bin/console composer.phar update
5 - Create the database
php bin/console doctrine:database:create
6 - Create the database table/schema
php bin/console doctrine:schema:update
7 - Load fixtures
php bin/console doctrine:fixtures:load
Login link :
/login
An user account is already available, use it to test the application :
"username" : "User",
"password" : "User340!"
An admin account is already available, use it to test the application :
"username" : "Admin",
"password" : "Admin34!"
An super admin account is already available, use it to test the application :
"username" : "SuperAdmin",
"password" : "SuperAdmin34!"
1 - Update the test database identifiers in project/ phpunit.xml.dist
<env name="DATABASE_URL" value="DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db__test_name"/>
2 - Run tests
php bin/phpunit
To contribute see CONTRIBUTING.md