Site vitrine pour donner de lumière aux petits artisans
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
tcelestin-profideo 200e9fb104
Add README.md
2 months ago
bin First commit 2 months ago
config First commit 2 months ago
devops/docker First commit 2 months ago
migrations First commit 2 months ago
public First commit 2 months ago
src First commit 2 months ago
templates First commit 2 months ago
tests First commit 2 months ago
translations First commit 2 months ago
.env First commit 2 months ago
.env.test First commit 2 months ago
.gitignore First commit 2 months ago
Makefile First commit 2 months ago
README.md Add README.md 2 months ago
composer.json First commit 2 months ago
composer.lock First commit 2 months ago
composer.phar First commit 2 months ago
docker-compose.yml First commit 2 months ago
phpunit.xml.dist First commit 2 months ago
symfony.lock First commit 2 months ago

README.md

Persons protection simulator

Requirements

To run this project smoothly, you will need to install and have a basic knowledge of the following tools:

  • docker
  • docker-compose
  • make

To be able to contribute, you will need a good knowledge of:

  • PHP ;)
  • symfony 5

Getting started

All commands are ran from the project root folder

Define environment variables

Duplicate the .env.dist file in a .env file in the root folder and define the environment variables.

Building the docker images

  docker-compose build

This will build an initial image "app" containing:

  • nginx
  • PHP FPM with common extensions
  • the current application code with the dependencies

Running the docker containers

  docker-compose up

or in the background

  docker-compose up -d

No extra step should be required to get a running application.

You should now be able use your web browser to access:

Connect to containers for CLI interactions

  • Connect to the web server container

    docker-compose exec app /bin/bash
    

development standard and reports generation:

  • run phpunit, a unit test tool. Report is generated in reports folder:

    make test
    
  • run phpmetrics tool. Report is generated in reports folder:

    make phpmetrics
    
  • run phpstan tool to check style. (no reports generated => requires update in phpstan.neon):

    make phpstan
    
  • run phpmd, a static analysis tool . Report is generated in reports folder:

    make phpmetrics