6ca103e61cb634f3b559084c111a93a514f97507
Bumps [scss-tokenizer](https://github.com/sasstools/scss-tokenizer) to 0.4.3 and updates ancestor dependency [node-sass](https://github.com/sass/node-sass). These dependencies need to be updated together. Updates `scss-tokenizer` from 0.2.3 to 0.4.3 - [Release notes](https://github.com/sasstools/scss-tokenizer/releases) - [Commits](https://github.com/sasstools/scss-tokenizer/compare/v0.2.3...v0.4.3) Updates `node-sass` from 4.14.1 to 8.0.0 - [Release notes](https://github.com/sass/node-sass/releases) - [Changelog](https://github.com/sass/node-sass/blob/master/CHANGELOG.md) - [Commits](https://github.com/sass/node-sass/compare/v4.14.1...v8.0.0) --- updated-dependencies: - dependency-name: scss-tokenizer dependency-type: indirect - dependency-name: node-sass dependency-type: direct:production ... 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%