Skip to content

Upgrade at SF 3.1 to 5.4 & added units/functionals tests & performance audit. Project 8 of the Developer PHP / Symfony formation of Openclassroom.

Notifications You must be signed in to change notification settings

leCheveuCodeur/TodoList

 
 

Repository files navigation

TodoList Codacy Badge Maintainability Codacy Badge

Description

This project is the 8th project of the Developer PHP / Symfony formation of Openclassrooms.

The first objective of this project was to migrate a Symfony 3.3 project to a newer version, here my choice was the latest Symfony LTS, 5.4.

The second objective was to implement unit and functional tests via PHPUnit and to fix/add some features.

The last objective was to perform a quality and performance audit of the project, via Blackfire and Codacy mainly.

How it work

TodoList

Build with

Server :

Framework & Libraries :

Installation

Clone or download the repository, and put files into your environment,

https://github.com/leCheveuCodeur/TodoList.git

Install libraries with composer,

composer install

Configure your environment with .env file :

# DATABASE_URL="mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=8"


###> Admin configuration, used in fixtures loading ###
ADMIN_PSEUDO='Admin'
ADMIN_EMAIL='your@email.com'
ADMIN_PASSWORD='yourPassword'

Initialise your Database :

OPTION 1 - Use the shortcut of my Makefile ❤️

make db

OPTION 2 - Use the next commands with the PHP console

1 - create your database :

php bin/console d:d:c

2 - create the structure in your database :

php bin/console d:m:m

3 - and install fixturesfor have first contents and your Admin account :

php bin/console d:f:l -n

Activate APCu cache on your Database :

1 - Download the latest version of the APCu file 👉HERE,

2 - Unzip the file,

3 - Copy/paste the php_apcu.dll file in your php_last_version/ext folder,

4 - Activate in the control panel of your server the APCu extension for PHP,

5 - Check the activation via the command php -m, where you should see the extension in the listed modules.

And Voilà ! 🎉

Launched the tests :

  • OPTION 1 - Use the shortcut of my Makefile ❤️
make t
  • OPTION 2 - Use the command with the PHP console
php bin/phpunit

About

Upgrade at SF 3.1 to 5.4 & added units/functionals tests & performance audit. Project 8 of the Developer PHP / Symfony formation of Openclassroom.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 91.5%
  • PHP 6.2%
  • Twig 1.3%
  • CSS 0.4%
  • Shell 0.2%
  • Makefile 0.2%
  • JavaScript 0.2%