bb8ec58dc0c3327a1b0243fb906155b21b76c5a7
Bumps [qs](https://github.com/ljharb/qs) to 6.5.3 and updates ancestor dependency [express](https://github.com/expressjs/express). These dependencies need to be updated together. Updates `qs` from 6.5.2 to 6.5.3 - [Release notes](https://github.com/ljharb/qs/releases) - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](https://github.com/ljharb/qs/compare/v6.5.2...v6.5.3) Updates `express` from 4.17.1 to 4.18.2 - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/master/History.md) - [Commits](https://github.com/expressjs/express/compare/4.17.1...4.18.2) --- updated-dependencies: - dependency-name: qs dependency-type: indirect - dependency-name: express dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
Setup
Requirement
-
php
Version: greater or equal to 7.2
Extensions:
- bcmath
- libxml
- mbstring
- openssl
- xml
- curl
-
ElasticSearch 5.x
-
RabbitMQ
-
Apache2
Install
-
Run
composer install ./bin/console doctrine:database:create ./bin/console doctrine:migrations:migrate --no-interaction ./bin/console socialhose:fixture:load --force setfacl -dR -m u:"www-data":rwX -m u:$(whoami):rwX var setfacl -R -m u:"www-data":rwX -m u:$(whoami):rwX var -
Use configuration from
configurationdirectory -
Regenerate public and private keys in app/config/cert and update options in app/config/parameters.yml
- jwt_private_key_path
- jwt_public_key_path
- jwt_key_pass_phrase
Tests
composer test
or separately
composer unit-test
composer behat-test
Also you can run test by hand, like this:
-
Run unit test
phpunit -
Run all functional test
behat -s api behat -s commandor for group
behat -s api behat/features/Securityor for concrete feature
behat -s api behat/features/Security/token/create.featureor run in debug mode (behat will print out all request options and responses)
DEBUG=true behat -s apior for fast test, without recreating database and cache clear
WITHOUT_CLEAR=true behat -s api
Docker
- Add UID to environment file:
echo "UID=$UID" >> .env - docker-compose up --build -d
- make sure all containers build and run successfully (
docker-compose ps):- socialhose-elastic
- socialhose-elastic-hq
- socialhose-mysql
- socialhose-php
- socialhose-rabbit
- make sure all containers build and run successfully (
docker-compose exec socialhose-php bashGo into container. All next commands should be running in it.- install \ update backend
sudo setfacl -dR -m u:"www-data":rwX -m u:$(whoami):rwX varsudo setfacl -R -m u:"www-data":rwX -m u:$(whoami):rwX varcp app/config/parameters.yml.docker app/config/parameters.ymlcomposer1 install
- database migration
./bin/console doctrine:migrations:migrate --no-interactionMigration is broken and can temporarily be bypassed by commenting out the up commands in VersionVersion20210212114326./bin/console socialhose:fixture:load --force
- install \ update frontend
cp frontend/app/appConfig.js.docker frontend/app/appConfig.jscd frontendnpm installnpm run build
Add twitter, instagram fixtures
docker-compose exec socialhose-php bashcd socialhosefixtures./add-fixtures.sh
Services are available under following urls:
- http://localhost:8081/app_dev.php - main site
- http://localhost:5000 - elastic hq (use http://socialhose-elastic:9200 for connect to elastic service)
- http://localhost:15672 - rabbitMQ UI
- MySQL external port is 33066
- http://localhost:8025/ - mail UI
Description
Languages
PHP
54.6%
JavaScript
22%
SCSS
17.3%
Twig
3.2%
Gherkin
2.6%
Other
0.2%