## Instructions

### Edit hosts file add

```bash 127.0.0.1 fitness-marketplace.test ```

#### Build and run docker containers ```shell script cd docker # Copy .env.example to .env and set UID and username # Find user ID with command `id -u ubuntu` docker-compose up -d ```

#### Start up the project ` docker-compose exec app composer startup `

#### Link to swagger ` http://fitness-marketplace.test:8083/api/documentation `

#### Testing credentials - admin `administrator@telego.rs:testeras` - user `test@server.com:testeras`

#### Console debug

```shell script PHP_IDE_CONFIG=serverName=fitness-marketplace.test \ php \ -dxdebug.remote_enable=1 \ -dxdebug.remote_port=9000 \ -dxdebug.remote_host=host.docker.internal \ -dxdebug.remote_connect_back=0 \ -dxdebug.remote_autostart=1 \ -dxdebug.idekey=fit_debug_id \ artisam user-package:renew

```

#### Watch jobs queue

```shell script docker-compose exec app php artisan queue:listen ```

### Start queue worker ```shell script docker-compose exec app php artisan queue:work ``` ### To list failed jobs ```shell script docker-compose exec app php artisan queue:failed ``` ### Log to specific channel ```php use Illuminate\Support\Facades\Log; Log::channel('google')→debug('test google log'); ``` ### PHPSTAN code check ```shell script docker-compose exec app composer phpstan ```

### Run fresh migrations on server ```shell script php artisan migrate:fresh –seed –database=master php artisan db:seed –class=TestDataSeeder php artisan db:seed –class=WhiteLabelApplicationSeeder ```