This is the boozt task for backend position
-
Before installing project make sure the following prerequisites have been met: A. docker B. git
-
You can download the code from its repository on GitHub.
-
Install docker on your machine [
Optional
]Another way of running the project would be running
php -S 127.0.0.1:8000 in the
in the public folder
-
Please run :
docker-compose up -d
docker-compose logs -f # Follow log output
in the root of the porject
-
You can migrate tables using this command :
cd web/app/Core/Database
docker-compose exec php php app/Core/Database/Migrations.php
This project use the following ports :
Server | Port |
---|---|
MySQL | 3306 |
PHPMyAdmin | 8010 |
Nginx | 8080 |
PHP | 9000 |
.
|
├── README.md
├── docker-compose.yml
├── docker
│ ├── nginx
│ │ ├── default.conf
│ │ └── default.template.conf
│ ├── php
│ │ └── php.ini
│ ├── mysql
│ │ └── data
│ └── ssl
└── web
├── app
│ ├── Controllers
│ ├── Core
│ ├── Migrations
│ ├── Models
│ ├── Public
│ ├── Runtime
│ ├── Tests
│ ├── vendor
│ ├── Views
│ ├── phpunit.xml.dist
docker run --rm -v $(pwd)/web/app:/app composer require symfony/yaml
docker run --rm -v $(pwd)/web/app:/app composer update
docker-compose exec -T php ./app/vendor/bin/phpunit --colors=always --configuration ./app
docker-compose exec php php -m
docker exec -it mysqldb bash