To run the project after cloning follow the steps below:
I have setup this project with docker.
With Docker -
If do you want to install with docker then first please install the docker and docker compose on your system and follow the steps mentioned below. Here are the links -
https://docs.docker.com/engine/install/
https://docs.docker.com/compose/install/
Without Docker -
If do you want to install without docker then the following are the requirements -
Apache2
PHP 8.2.5
For non-docker project, commands are the same (skip first command)
Replace the ./docker-php with php
- In 1st terminal tab: Run the container
docker-compose up
- In 2nd terminal tab: Composer install
./docker-php composer install
- Command to calculate the distance (add the api key in .env file before run this command)
./docker-php bin/console app:distance-calculate
After run the command, The CSV file will be generated in the public folder of the application.