Skip to content

nofuture17/demo-api-platform-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

  • All API methods are described in openapi /docs_ui.
  • The application doesn't require any auth.
  • Images are stored in app/images and available via DownloadController for save original file name.
  • Based on PHP 8.0, Symfony 5, API-Platform 2.7, PostgreSQL 13.2

Docker compose

The application is placed in /srv/app and starts with php start.sh

Copy docker config

cp docker/.env.distr docker/.env

Copy php configs

cp app/.env.dev app/.env.dev.local
cp app/.env.test app/.env.test.local
cp app/phpunit.xml.dist app/phpunit.xml

Run docker

cd docker
docker-compose up -d

Useful commands inside php container

Run code style fixer and php analyzer

composer check-quality

Generate tests coverage report in var/coverage.html

Tests coverage is 100% Coverage

composer generate-coverage

Run tests

composer test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published