A personal SMS check-in app - check if your friends respond.
To install the platform on your computer/server, the target system must meet the following requirements:
- PHP version 5.4.0 or greater
- Database Server
- MySQL version 5.5 or greater
- PostgreSQL support is coming
- An HTTP Server. PingApp is known to work with the following web servers:
- Apache 2.2+
- nginx
- Redis
- required for Message Queuing
- Unicode support in the operating system
- Open a terminal
- Clone the project
git clone https://github.com/ushahidi/pingapp.git
- Update the submodules
git submodule update --init --recursive
- Install the Twilio packages using Composer by running
composer install
.
-
Create a database
-
cp application/config/database.template application/config/database.php
-
Edit
application/config/database.php
and set database, username and password paramsreturn array ( 'default' => array ( 'type' => 'mysql', 'connection' => array( 'hostname' => 'localhost', 'database' => 'pingapp', 'username' => 'pingapp', 'password' => 'pingapp', 'persistent' => FALSE, ), 'table_prefix' => '', 'charset' => 'utf8', 'caching' => TRUE, 'profiling' => TRUE, ) );
-
Install the database schema using migrations
./minion --task=migrations:run --up
-
cp application/config/init.template application/config/init.php
-
Edit
application/config/init.php
and change base_url to point the the httpdocs directory in your deployment -
cp application/config/auth.template application/config/auth.php
-
cp application/config/modules.template application/config/modules.php
-
cp application/config/redis.template application/config/redis.php
-
cp httpdocs/template.htaccess httpdocs/.htaccess
-
Edit
httpdocs/.htaccess
and change the RewriteBase value to match your deployment url -
Create directories
application/cache
andapplication/logs
and make them writable
- Perform a
git pull https://github.com/ushahidi/pingapp.git
- Run migrations
./minion --task=migrations:run
Base config files are in application/config/
.
- Get a free account at https://www.twilio.com/.
cp application/config/sms.template application/config/sms.php
- set
account_sid
andauth_token
'options' => array(
'account_sid' => 'TwilioAccountSID20130924',
'auth_token' => 'TwilioAuthToken20130924'
)
The default login credentials are admin / westgate
Please refer to PING's Design Guide
- To run unit tests locally run
./vendor/bin/phpunit -c application/tests/phpunit.xml
- View continuous integration build statuses on Travis