ThinkTank is an installable web application that captures and organize replies to status updates on Twitter and beyond. See screenshots and more at http://thinktankapp.com.
WARNING: Pre-alpha code, PROCEED AT YOUR OWN RISK!
This is not production code. This is a pre-alpha web application. The intended audience is server administrators with experience installing and troubleshooting PHP/MySQL hosted web applications. While ThinkTank uses OAuth to access Twitter, the webapp’s login is not as secure as it should be. Right now this code is for experimentation and tinkering only. Do not run on a public, production server. You have been warned.
In future versions, this will get easier.
- PHP 5 with cURL and GD enabled
- MySQL 5
- A public web server. (Twitter authorization requires a public callback URL, so you’ll need to expose a local dev server to the internet for initial authorization; after that the server doesn’t have to be publicly available.)
Install application files
- Download source code. Save the
thinktankdirectory one level above your web site’s DocumentRoot. For example, if your site’s DocumentRoot is
- Create a symbolic link to the
thinktank/webappdirectory in your site’s DocumentRoot folder. To do so,
cdto the DocumentRoot, and use the command:
ln -s ../thinktank/webapp/ thinktank
- Make the following directories writable by the web server:
- Note for upgraders: If you’re upgrading a previous installation, delete your cookies (in Firefox under Preferences / Privacy / delete individual cookies).
Set up database
- Create a database and select it, i.e.,
CREATE DATABASE thinktank
- Build tables with
Register your app with Twitter (for OAuth support)
- Log into Twitter and register your ThinkTank instance. Set the callback URL to
Write down the items labeled “Consumer key” and “Consumer secret.”
Configure the app
Shared libraries: Rename
config.inc.php. Add your database credentials, file and webapp paths, and the key/secret you got from Twitter in the previous step.
config.crawler.inc.phpand set include path to the absolute location of
config.webapp.inc.phpand set include path to the absolute location of
Visit the web application on your server, register and log in, and set up your Twitter accounts.
Then, run the crawler to load your Twitter data:
$ php crawler/crawl.php
To view what’s going on with the crawler, use this command:
$ tail -f crawler/logs/crawler.log
Cron the crawler’s run command to go at least once an hour. Hint: you may configure and cron this pre-fab bash script, which will run the crawler and rotate its logs:
See the script’s README for more information on configuring it.