Composer
- one-liner:
curl -sS https://getcomposer.org/installer | php
- doc: getcomposer.org
node & npm
- one-liner:
brew install node
- doc: lmgtfy
gulp
- one-liner:
npm install -g gulp
- doc: gulpjs
- Set your host document root to server/public/
- run
./composer.phar install
- Create a config.php file based off of config.dist.php and save to config.php
- The database should follow the following schema:
CREATE TABLE `bandwidth_records` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`js` decimal(20,10) unsigned NULL,
`swf` decimal(20,10) unsigned NULL,
`user_agent` varchar(255) DEFAULT NULL,
`ip` char(45) DEFAULT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
ALTER TABLE `bandwidth_records` ADD `referrer` CHAR(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL AFTER `ip`;
- run
npm install
to install local nodejs packages - run
gulp install
to perform an installation
Make sure to then modify the endpoint in benchmark.js to point to the host running the bandwidth logging api, with the path /api/bandwidth. For example: lab.videodesk.com/bw_benchmark/api/bandwidth
.