ddd cms
1.0.0
CATATAN: Refaktor Tertunda
Kloning repositori ini
$ git clone [email protected]:albertcolom/ddd-cms.git
Mulai penulisan buruh pelabuhan
$ docker-compose up -d
Bangun lingkungan dengan Apache Ant
$ docker-compose exec php ant build
Tambahkan domain di host (Opsional)
127.0.0.1 ddd.cms.dev
http://localhost/api/doc or http://ddd.cms.dev/api/doc
http://localhost:15672 or http://ddd.cms.dev:15672
http://localhost:9200 or http://ddd.cms.dev:9200
http://localhost:5601 or http://ddd.cms.dev:5601
$ docker-compose exec php bin/console
Pendengar membaca pesan dari RabbitMQ dan mempublikasikannya di ElasticSearch
$ docker-compose exec php bin/console rabbitmq:consumer events
Unit PHP
$ docker-compose exec php bin/phpunit
or
$ docker-compose exec php ant phpunit
Detektor Kekacauan PHP: PHPMD
$ docker-compose exec php bin/phpmd src text ruleset.xml
or
$ docker-compose exec php ant phpmd
CodeSniffer PSR-2
$ docker-compose exec php bin/phpcs --standard=PSR2 src
or
$ docker-compose exec php ant psr2
berperilaku
$ docker-compose exec php bin/behat
or
$ docker-compose exec php ant behat
Jalankan semua rangkaian pengujian (PHPunit, PHPMD, PSR-2, Behat)
$ docker-compose exec php ant testing