Skip to content

tungnguyenson/slackpi

Repository files navigation

SlackPi

A Slack integration with Raspberry Pi to become an on-demand Music Box

Preparing

  • Get composer & run composer install
  • nginx, gearman server, supervisor
  • php, php-curl, php-gearman
  • Copy config/local.php_sample to config/local.php

Unit testing

Run all test cases:

./phpunit.sh

Run single test caces:

./phpunit.sh tests/SampleTest.php

Code coverage is generated at var/coverage.txt

Manual testing

curl -XPOST http://<host>/ --data "text=http://www.nhaccuatui.com/bai-hat/say-you-do-tien-tien.u29bozMlBM4b.html"

curl -XPOST http://<host>/ --data "text=http://www.nhaccuatui.com/playlist/noi-di-ma-single-vicky-nhung.7tPbNofSxAkt.html"

Notes

Pi is running on PHP 5.4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published