Run make initial-setup
. It will run docker-compose, install deps and prepare databases.
To start it without recreating everything, use make docker-compose-up
.
To do a full setup and test run, execute:
make initial-setup qa-all
.
Each part of the system should have its own Makefile.
Common parts can be defined in root dir's Makefile
, Makefile-php
, etc.
Service-specific makefile has to define common configuration variabless before including common Makefile, like here:
PROJECT_DIR = ../
include ../Makefile
PHP_SERVICE=adoption-php
include ../Makefile-php
To run e2e tests use make e2e
.
General idea is very similar to what Herberto Graca described in his blogpost.
It's foundation is the onion architecture
Shared library. Includes basic abstraction, test helpers, etc.
Implements adoption domain.
Manages users - registration, login, etc
Experiment about introducing clean e2e test using behat.
Broken frontend skeleton that uses React.
I decided to play wth Kong as an API gateway. Right now it requires to specifiy routes available outside. It will be significantly changed in the future. Configuration can be found here.