Cpiapps is a backend for CPI platform.
Used technologies and tools:
- php 7.3
- symfony 4
- lua
- postgresql
- rabbitmq
- openresty
- redis
- install docker and docker-compose instruction
For mac
- make docker_manage_hosts_mac
- make docker_up_mac
- make docker_prepare
For linux
-
make docker_manage_hosts
-
make docker_up
-
make docker_prepare
-
make configure_code_sniffer
To run tests, run the following commands in the console from the root of the project folder.
- make docker_run_tests
https://documenter.getpostman.com/view/5139478/RWaC2X6Y#13310474-dd94-45df-b430-f4a2056d2808
Configure linters described below and run command make run_fixers
to call them all
- Configure Code sniffer in phpstorm, specify bin path Instruction
- Configure Code sniffer in phpstorm inspections, coding standard - PSR2 Instruction
Usage:
make run_cs
- Configure PHP CS Fixer, specify bin path Instruction
- Configure PHP CS Fixer in phpstorm inspections, ruleset - PSR2 Instruction
Usage:
- Check code style
make fixer_check
- Fix code style
make fixer_run
- Configure Mess detector in phpstorm, specify bin path Instruction
- Configure Mess detector inspections in phpstorm Instruction
Usage:
make md_run