Skip to content

Latest commit

 

History

History
93 lines (61 loc) · 1.17 KB

File metadata and controls

93 lines (61 loc) · 1.17 KB

Problem Track

"Problem Track" is the ultimate solution for organizations seeking to enhance their problem resolution processes, drive operational efficiency, and deliver exceptional customer experiences.

Dependências

  • Docker
  • Docker Compose

To run

Clone Repository

$ git clone git@github.com:SI-DABE/problem-track.git
$ cd problem-track

Define the env variables

$ cp .env.example .env

Install the dependencies

$ ./run composer install

Up the containers

$ docker compose up -d

ou

$ ./run up -d

Create database and tables

$ ./run db:reset

Populate database

$ ./run db:populate

Fixed uploads folder permission

sudo chown www-data:www-data public/assets/uploads

Run the tests

$ docker compose run --rm php ./vendor/bin/phpunit tests --color

ou

$ ./run test

Run the linters

PHPCS

$ ./run phpcs

PHPStan

$ ./run phpstan

Access localhost

Teste de API

curl -H "Accept: application/json" localhost/problems