- Install docker
- clone project
git clone https://github.com/topten1222/short-url.git {projectName}
- go to the directory in which you cloned the project. Run the commands from this directory
docker compose up -d
- execute service php. Run the commands from this firectory
docker exec -it {containerNameServicePhp} /bin/sh
- composer install. Run the commands from this directory
composer install
- rename file env to .env
- database migration. run the command from this directory
php spark migrate
- open browser http://localhost
run command from this project
docker-compose ps