Skip to content

Dave3991/vstupni_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nette 3.0 Sandbox with apitte 0.6.0, Symfony console and Doctrine2 in docker

Because there is lack of implemantation of these "must have" technologies to nette I made this.

Installation

  1. in docker folder run docker-compose up
  2. docker exec -it docker_web_1 /bin/bash
  3. inside docker (docker_web_1) run composer update
  4. Now you should have working web on 127.0.0.1:8080
  5. To run console: php ./bin/console.php

How to

generate entities from db probably you will have to install driver for you db example for mysql

apt-update
apt install php7.3-mysql

then run command inside container for generating doctrine entities:

php bin/console.php orm:convert-mapping --namespace="" --from-database annotation ./app/Entity/Database/

then run this for creating database schema stuff

php ./bin/console.php orm:schema-tool:update --force

To validate annotations in entity classes

php ./bin/console.php doctrine:schema:validate

To load point of sales to db:

php ./bin/console.php load:pid

To run unit tests vendor/bin/tester ./tests/ -c ./tests/unit/php.ini

To run phpStan

vendor/bin/phpstan analyse -l7 -c ./tests/phpstan/phpstan.neon ./app

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages