Skip to content

Its my last symfony project for the trainning. This project is aimed for us to learn PhpUnit and Blackfire for Php test

License

Notifications You must be signed in to change notification settings

JENNYPCHEN/p8_to_do_and_co

Repository files navigation

p8_to_do_and_co

Codacy BadgeCodacy Badge

Hi there, Thank you for your interest in this project. I'm delighted to announce that this is my last project for my PHP/Symfony training with OpenClassrooms (which means I'll then have more time to explore new projects and of course for the job search! wohooo!). Regarding this project, it's about upgrading an old application and testing it using PhpUnit. We also explore how to write a technical documentation as well as a code audit with the help of Blackfire and Codacy.

Please let me know what you think about this project. I'm always open to improvements!

project8pic1

Homepage of the upgraded application (It is a task management application)

projectpic1

Homepage after login

Features

  • Upgrade an application from Symfony 3 to 6 (which is the latest version currently)
  • New functions concerning the autentication are added (user roles etc)
  • Technical documentation has been created to explain how authentication works in the application
  • Code audio has been created to analyse the quality of code and the performance
  • Prerequisites

  • PHP >=8.0.2
  • Symfony > 6.0
  • Local server, e.g. XAMPP/WAMP for local use.
  • MySQL database management tool, e.g PhpMyAdmin
  • Libraries will be installed using Composer.
  • Starting the application

    You can run the application on your computer for development and testing purposes by following the simple steps below:

    Installation

    Step1 Clone / Download

    Clone the repository of this page.

    Step 2 Configure environment variables

    Open .env file and modify line 30 (database URL) with your own detail.

    Step 3 Install all dependencies

    Install Composer if you do not have it yet.
    In your cmd, go to the directory where you want to install the project and install dependencies with composer with the commands below:
    $ cd some\directory
    $ composer install

    All dependencies should be installed in a vendor directory.

    Step 4 Create database

    Create a new database using the command below:
    $ php bin/console doctrine:database:create
    $ php bin/console doctrine:migrations:migrate

    You can import fixture by running the command below:

    $ php bin/console doctrine:fixtures:load

    Step 5 (optional) Configuring database for Tests

    If you want to run the Tests, it is always recommanded to use a seperate database, to do it, you can follow the command below:
    $ php bin/console --env=test doctrine:database:create
    $ php bin/console --env=test doctrine:schema:create

    In order to load the fixtures for the test purpose, you can run the command as below:

    $ php bin/console --env=test doctrine:fixtures:load

    Here you are!

    Wohoo! You are ready to go! If you use symfony local server, simply run
    $ symfony serve: start

    Have a great day! Looking forwards to sharing more projects/news with you!

    ChingYi P.C
    http://chingyipc.com/

    About

    Its my last symfony project for the trainning. This project is aimed for us to learn PhpUnit and Blackfire for Php test

    Topics

    Resources

    License

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published