This repository contains a Dockerized Symfony application designed for local development. For the local environment, this setup provides a quick way to spin up and showcase the test assignment.
Ensure you have Docker and Docker Compose installed on your machine.
-
Clone the repo
git clone https://github.com/bumblecoder/tech-task.git cd tech-task cp code/.env code/.env.local && \ sed -i 's|^DATABASE_URL=.*|DATABASE_URL="mysqli://docupet:password@mysql:3306/docupet_db"|' code/.env.local
-
Build and start the Docker containers:
make build
This command will build and start the necessary Docker containers. The process may take some time.
To destroy application:
make down -
Access the application:
By default, the application will be available on port 8088 of localhost. Ensure this port is available; otherwise, the build may fail.
Open your browser and go to http://localhost:8088.
The following API endpoints are available:
- GET /register — Registration page
docker compose exec php-fpm bin/phpunit
Distributed under the MIT License.