This test application uses code from Zalando/Tailor.
Skeleton used from phalcon-compose
To start the project use docker-compose.
Nevertheless, you need to free the ports 80,8080,8100,8101,5432 in order to successfully run docker.
# Do the following on your own:
# Install composer dependencies for frontend
# Install npm dependencies for tailor
# Start infrastructure
docker-compose up -d
You can see the result on localhost
Frontend is directly available via localhost:8100
Backend REST is available via localhost:8101
PhpPgAdmin is available via localhost:8080 (Username and Password can be seen in variables.env)
The infrastructure is inspired by Zalando´s project mosaic Website.
HTTP Router developed by Zalando. See github.com/zalando/skipper
Tailor composes the delivered page out of multiple fragment. The template can be found in "tailor/templates".
The frontend generates the HTML Code based on the result from the Backend API calls.
As HTTP Client HTTPful is used.
The Backend API uses Phalcon as Framework. The Backend connects to a PostgreSQL server and create JSON response based on some programmed test data.
A PostgreSQL database will be run by docker and is available to the application inside the containers as well as the host on port 5432.