Welcome to our real-time Twitter Firehose API demo, which displays tweets from around the world on a 3D globe as they occur. You can customize your experience by adding a search term in the URL bar. Tweets containing this term will then be displayed on the globe, originating from their tweet location.
Follow the steps below to run this project on your local machine:
-
Navigate to the project directory:
Open your terminal and navigate to the
globe
directory inside the project repository. Replace the...
with your local route to the project.cd ~/.../eatingEarth/globe
-
Start a local web server:
Inside the
globe
directory, you need to start a web server. One option is to use serve, a static file server. You can start it with the following command:serve .
-
Access the web page:
Now, open your web browser and navigate to your localhost at the designated port (default is 5000 if you use
serve
), then go to ourtweetGlobe.html
page with asearchTerm
parameter. The updated URL is as follows:http://localhost:3000/tweetGlobe?searchTerm=quantum
In this example, the
searchTerm
parameter is set to 'quantum'. As a result, the globe will display tweets that contain the word 'quantum'.
And that's it! Enjoy exploring global tweets in real-time with your chosen search term.