- PHP >= 7.1
- MySQL
- Strategy
- Repository
Firstly, you need to clone git repo. (Run it in your terminal)
git clone https://github.com/meteoguzhan/symfony-todo-example.git
You need to copy env file and rename it as .env
cd symfony-todo-example && cp .env.example .env
After clone project, you need to install packages. (Make sure your system exists composer)
composer install
Open .env file, Give your updated details of MySQL connection string.
DATABASE_URL="mysql://root:[email protected]:3306/todo"
If you don't have a database, you can create one.
php bin/console doctrine:database:create
You can create migrations and migrate.
php bin/console make:migration && php bin/console doctrine:migrations:migrate
You can save developer fixtures.
php bin/console doctrine:fixtures:load
You can get tasks lists.
php bin/console app:fetch-and-save-tasks --api-url=https://run.mocky.io/v3/27b47d79-f382-4dee-b4fe-a0976ceda9cd &&
php bin/console app:fetch-and-save-tasks --api-url=https://run.mocky.io/v3/7b0ff222-7a9c-4c54-9396-0df58e289143
You can test the project.
./vendor/bin/simple-phpunit
You can start the project. (Make sure your system exists php)
symfony server:start