Сервисы для Point.im
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Alexey Skobkin 07f89712d9
Merged in composer_update (pull request #27)
3 years ago
app Crutch-fixing PostController::showAction() exception handling with 404 instead of 403 exception. 4 years ago
src Crutch-fixing PostController::showAction() exception handling with 404 instead of 403 exception. 4 years ago
tests/Skobkin/PointToolsBundle Fixing UserRepositoryTest according to new test users. 4 years ago
web app/console, web{app,app_dev}.php updated according to new symfony-standard distribution. 4 years ago
.gitignore Ignore .idea directory 8 years ago
LICENSE Add LICENSE 8 years ago
README.md crontab added for future deployment integration. 6 years ago
composer.json Fixina small MainControllerTest problems. 4 years ago
composer.lock composer update. 3 years ago
phpunit.xml.dist Disabling debug class loader in test environment to hide deprecation warnings. 4 years ago


Codeship Status for skobkin/point-tools Scrutinizer Code Quality codecov Total Downloads License

Point Tools

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


Application setup is quite simple:

Getting the source code

Via Git

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

Via Composer

composer create-project skobkin/point-tools -s dev
cd point-tools

Setting file access privileges

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

Installing dependencies (not needed after installation via Composer)

# In developer environment:
composer install
# In production environment
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

See app/crontab for more advanced usage.

Setting Telegram webhook (to enable bot)

php app/console telegram:webhook set

Removing Telegram webhook

php app/console telegram:webhook delete

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
export SYMFONY_ENV=test

Load fixtures (if needed)

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

Run tests

phpunit -c app/