Here is the recommended installation with Docker that includes PHP, MySQL and phpMyAdmin to get a functional application in no time.
- Clone the repository
git@github.com:briandidierjean/projet8-da-php-symfony-oc.git
. - Go to the project root.
- Execute
docker-compose up
in your terminal Docker containers. - Execute
php bin/console doctrine:schema:update --force
in www_docker container shell to generate the database structure. - Execute
php bin/console doctrine:fixture:load
in www_docker container shell to load the testing data. - Create a .env.local file and add
APP_ENV=prod
in www_docker container shell to update to application to production. - Execute
rm -rf var/cache/
in www_docker container shell to clear the cache.
The application is ready ! Go to localhost:8000 to interact with it and localhost:8888 for phpMyAdmin.
Here is the installation with a LAMP stack. You can use the web server of your choice as long as you can make it work with Symfony. You also need PHP 7.4, MySQL 8 and Composer.
- Clone the repository
git@github.com:briandidierjean/projet8-da-php-symfony-oc.git
. - Go to the project root.
- Execute
composer install
in your terminal to install the dependencies. - Create a env.local file and add your database credentials.
- Execute
php bin/console doctrine:schema:update --force
in your terminal to generate the database structure. - Execute
php bin/console doctrine:fixture:load
in your terminal to load the testing data. - Add
APP_ENV=prod
in .env.local to update to application to production. - Execute
rm -rf var/cache/
in your terminal to clear the cache.
Now, ToDo & Co should be working.
If you want to know more about contributing to the project consults CONTRIBUTING.md.