Project description
Table of Contents
- Getting Started
- Prerequisites
- Installing
- Environment
- Running the tests
- Delivery
- Deployment
- Built With
- Versioning
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system. You can plug any of this tools to your favourite IDE.
You need to have the following softwares installed on your local machine:
- Docker for windows
- Git
- Windows PowerShell
Clone project using ssh (you will need to set a SSH key in your Gitlab profile)
git clone git@github.com
- Each
./Dockerfile
contains a basic configuration for developing with Symfony 4 framework and deploying in a production environment. - The file
.env
allows to set the name of the Docker project's stack as well as basic PHP image version for Docker - The file
.env.dev.local
must be created (and git ignored) to fill in empty parameters from the/.env
file
- Run / init:
docker-compose up
- Stop:
docker-compose stop
- Destroy:
docker-compose down
- Cleanup:
docker-compose rm -vsf
- Reset:
docker system prune -af --volumes
When starting the backend
container, Composer will download and install dependencies in ./vendor
directory
We use name and link to the SGBDR documentation for this project.
Explain how to import data when you start working on this project
Explain where your source code is located
We use code quality tools which you can plug in your favourite IDE:
List which code quality tools are used and mandatory in this project For each tool: name, link to documentation and path to the associated config file
Use this pattern
docker-compose exec backend php <entrypoint> <command> <args>
Launch tests with associated config file in `` Path to the phpunit.xml.dist file
docker-compose exec backend php bin/phpunit --configuration phpunit.xml.dist tests/
Launch tests with associated config file in `` path to the behat.yml.dist file
docker-compose exec backend vendor/behat/behat/bin/behat --config behat.yml.dist features/
Explain how do you deliver the project to the client
Explain how do you deploy in test environment
Explain how do you deploy in production environment
List which code and test frameworks and libraries are used in this project For each one: name and link to documentation
- Symfony & API Platform - PHP Framework
- MySQL - SGBDR
- PHP Unit & Prophecy - Unit tests framework
- Behat - Functional tests framework
- Composer - Dependency management
- Docker - Virtualization and container management
We use Git and Gitflow with conventional commits for versioning.