tweet-intel
A web application that displays real time information by scraping tweets. Made with 💙 by TheCodeWeaver. Thanks J7mbo for creating the twitter-api-php library!
Running in a Docker container
-
Pull the Apache PHP Docker container from webdevops:
docker pull webdevops/php-apache
-
Run the following command to start the container:
docker run -v [tweet-intel source directory]:/app/ -p 80:80 -i webdevops/php-apache
-
Setup your environment variables according to the code
ACCESS_TOKEN="[Twitter API Access Token]"
ACCESS_TOKEN_SECRET="[Twitter API Access Token Secret]"
CONSUMER_KEY="[Twitter API Key]"
CONSUMER_SECRET="[Twitter API Secret Key]"
SEARCH_TERM="[Twitter Search Term]"
TWEET_COUNT="[Number of Tweets to display]"
-
Run
ifconfig
to determine the IP address of your container (so you can access the web server) -
Visit the IP address from step 4 to see the Tweet Intel page.