- Docker Desktop https://www.docker.com/products/docker-desktop
- NVM (Recommended) https://github.com/nvm-sh/nvm
- Clone this repo, navigate to the folder containing the
docker-compose.yml - Run
docker-compose build - The initial build will take a bit of time, have a drink, you've earned it.
Using a terminal, navigate to the folder containing the docker-compose.yml file
| Command | Description |
|---|---|
docker-compose up |
Bring up all services, composer install on cutheme / api |
docker-compose up -d |
Same as above, but will run in background |
docker-compose down |
Stop running containers (if you ran in background) |
- Frontend (Vue): http://localhost/
- Backend (Laravel): http://localhost:8081/
- MailHog: http://localhost:8025/
- Once running, from the same directory as the
docker-compose.yml - Command structure is
docker-compose exec CONTAINER_NAME COMMAND
- MySQL Dump to Deskop
docker-compose exec mysql mysqldump --all-databases --user=root --password=password > ~/Desktop/db.sql - PHP Aritsan Commands
docker-compose exec backend php artisan migrate
docker-compose exec CONTAINER_NAME shdocker-compose exec CONTAINER_NAME bash
- For TablePlus, find the connection in the
_config/sqlfolder - Host:
127.0.0.1 - Port:
3307 - User:
root - Pass:
password
- VSCode Extension: https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug
- Browser Extension: (see link for XDebug Helper Here) https://www.jetbrains.com/help/phpstorm/browser-debugging-extensions.html
- Configuration is in the
.vscodefolder in thelaunch.jsonfile - To start debugging, click on the "Run and Debug" icon on the left side of VSCode and click "Listen for xdebug" (look for the green play button at the top of the second column).
- In your browser, make sure the above browser exention is active and browse to the site.