Skip to content

Ziumper/company-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Company REST-API

Project that allows to save company data with rest api.

Getting Started

Based on official symfony docker env. Check symfony/docker if more info is needed.

  1. If not already done, install Docker Compose (v2.10+)
  2. Run docker compose build --no-cache to build fresh images
  3. Run docker compose up --pull always -d --wait to start the project
  4. Open https://localhost in your favorite web browser and accept the auto-generated TLS certificate
  5. Run docker compose down --remove-orphans to stop the Docker containers.

Setup for Unit Tests

To run unit tests following has to be done:

# login into container
docker compose exec php sh
# make sure bin/console file is executable file as well phpunit bin
chomd +x bin/console bin/phpunit
# setup database and run migrations
php bin/console doctrine:database:create --env=test
# migrations
php bin/console doctrine:migrations:migrate --no-interaction --env=test
# run unit test
php bin/phpunit

For debugging tests in apache netbeans

docker compose exec -e XDEBUG_TRIGGER=netbeans-xdebug php vendor/bin/phpunit

About

Project that allows to save company data with rest api.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors