Tomasz Wnuk
[email protected]
https://github.com/tjwnuk
This is recruitment task for Cogitech.
This repo utilises template from
https://github.com/ger86/symfony-docker
clone this repo \
cd cogitech
cd .docker
docker compose up -d
docker exec -it symfony_dockerized-php-1 bash
composer install
#initialize database entity
php bin/console make:migration
App works on port :8080 . Please run browser and open http://localhost:8080
. After starting the container refresh the page.
- Run container
cd cogitech/.docker/
docker-compose up -d
- List working containers
docker ps
- find php container and get into it, for example
docker exec -it symfony_dockerized-php-1 bash
- Fetch data from the website
php bin/console fetch
You can simply clear the database, just log into container
docker exec -it symfony_dockerized-php-1 bash
and run the command
php bin/console clear
The site exposes api through the API Platform, available at /api.
/api - Swagger UI
/api/posts - List of all posts
/api/posts/{id} - get certain post