CRUD test app
Live demo
API Client: https://ht-client.darneta.lt/
API: https://ht-api.darneta.lt/
Documentation
- See api/README.md
- See client/README.md
Development server
Requirements
- Docker 18.09+ (might work on older too, not tested)
- Docker-compose 1.14+ (might work on older too, not tested)
Run
- (optional) build containers
docker-compose -f docker-compose.dev.yml build
docker-compose -f docker-compose.dev.yml up
- Get fronted container ip
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' hostinger_test_client
- Open browser at http://{FRONTEND_CONTAINER_IP}:4200
Run API tests
- Get inside container
docker exec -ti -u application hostinger_test_api bash
- Get to project dir
cd /app
- Run phpunit
./bin/phpunit