Сервисы для Point.im https://point.skobk.in/
Go to file
Alexey Skobkin fbc72ee0c2 Database driver removed from parameters.yml.dist because of PostgreSQL schemas usage. 2016-12-16 20:59:05 +03:00
app Database driver removed from parameters.yml.dist because of PostgreSQL schemas usage. 2016-12-16 20:59:05 +03:00
src MainControllerTest code quality fix. 2016-12-12 21:37:15 +03:00
web web/config.php removed. 2016-12-12 21:38:42 +03:00
.gitignore Ignore .idea directory 2015-03-29 17:35:44 +03:00
LICENSE Add LICENSE 2015-03-27 23:13:42 +03:00
README.md README.md updated: translation to English, tests, fixtures, Scrutinizer badges. 2016-12-12 00:59:16 +03:00
composer.json First functional test. 2016-12-11 08:26:30 +03:00
composer.lock First functional test. 2016-12-11 08:26:30 +03:00

README.md

Codeship Status for skobkin/point-tools Scrutinizer Code Quality Scrutinizer Code Coverage codecov SensioLabsInsight

Point Tools

Point Tools is a service which provides additional features for Point.im microblog users.

Installation

Application setup is quite simple:

Getting the source code

git clone https://skobkin@bitbucket.org/skobkin/point-tools.git
cd point-tools

Setting file access privileges

Set up appropriate write privileges for app/cache and app/logs.

Installing dependencies

# В dev-среде:
composer install
# В prod-среде
composer install --no-dev --optimize-autoloader

After dependencies installation you will be asked for database credentials of PostgreSQL database and some other application parameters.

Database initialization

php app/console doctrine:migrations:migrate

Web assets installation

php app/console assets:install web --symlink

Adding CRON jobs

crontab -e

You can use following jobs as an example:

# point.skobk.in
*/10 * * * * /usr/bin/php /path/to/point-tools/app/console point:update:subscriptions --env=prod
0 0 * * * /usr/bin/php /path/to/point-tools/app/console point:update:subscriptions --all-users --env=prod

Running tests

Configure environment variables

export SYMFONY__TEST_DATABASE_USER=some_database_user
export SYMFONY__TEST_DATABASE_PASSWORD=some_database_password
export SYMFONY__TEST_DATABASE_NAME=some_database_name
export SYMFONY__TEST_DATABASE_PORT=postgresql_port

Load fixtures (if needed)

php app/console doctrine:fixtures:load --no-interaction

Run tests

phpunit -c app/