docker-compose up -d
docker-compose exec backend bash
composer install
## FOR WSL2 USERS:
## before running next command
## update DATABASE_URL .env variable host IP with IP of WSL instance (inet from ifconfig output)
php bin/console doctrine:migrations:migrate
php bin/console cache:clear
review project settings on .env
your application should be running on http://localhost:8080
- requirements
- php 8.1
- postgres 14
- php composer
- webserver
- update postgres connection details on .env
curl --location --request POST 'http://localhost:8080/posts' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"title": "My first post",
"summary": "Nam non est risus. Donec at orci at lectus consequat scelerisque vel ac justo."
}'