Search for tweets based on keywords and see the results displayed on a world map.
The app currently works using playback data. To use live data, it would have to be reconfigured to use the Twitter api v2 as v1.1 has been retired completely as of 31st October 2022. This is outside the scope of this course and has not been done.
This sets up the project to play back a cached Twitter feed. It is therefore not required to connect to the Twitter api as live data isn't being used.
- To get going, first fork this repository.
- Then download IntelliJ Idea or similar IDE for running the program.
- After installation, click the
open
button from the IntelliJ window and select the project directory. ctrl-click
theApplication
file in theui
package and selectRun 'main'
.- The graphics canvas will open and display a world map. A user can then enter search terms via the UI to display relevant tweets with the tweet origin being shown on the map.
To use live data in the app, the above steps need to be done followed by those below.
- Reconfigure the code to implement Twitter api v2 as v1.1 has been depreciated.
- Create a Twitter account if you don't already have one.
- Apply for a developer account. Fill out the questionnaire and await approval. This could take a couple of days.
- Once granted, create a new app from the Twitter console, then set up user authentication from within it.
- Pass the Twitter OAuth key, token and secrets to
initializeTwitterStream
.
This is the final project from the Software Construction: Object-Oriented Design course from UBC. The course is the fourth of six that form the Software Development MicroMasters Program on edX.