This project is built from the following stack:
- A docker compose file with php:7.4.28-fpm-alpine3.14
- web container with Xdebug 3
- mysql:5.7 container
- phpmyadmin container
- nginx container with a nginx.conf
composer is used to manage dependencies.
Clone the repo. Then, go to your cloned repo and call:
docker compose up --build
Now, you can access to project with the following url:
http://localhost:8081
To access to your database, PMA has been installed:
http://localhost:8082
You can log in with these credentials:
user: user
password: user
First, connect to your web container:
docker exec -it php_web sh
To run tests, run the following command:
./vendor/bin/phpunit tests/
You can see available API endpoints with Swagger UI:
http://localhost:8081/swagger