A Spring Boot aaplication that uses Twitter API to search and filter Public Tweets
Go to "https://developer.twitter.com/" and create an account to generate API tokens that will be used to Authenticate you.
Setup for Angular FrontEnd:
- Import the project then run "npm install".
- Run "npm install @angular-devkit/[email protected]" to fix some issues.
- Run "ng serve" and make sure the server is running on localhost:4200.
Setup for Spring Boot BackEnd:
- Import the project.
- Replace Dummy Values for Twitter API tokens recieved earlier with values(Bearer Token is enough for now as all the processes require OAuth 2.0).
- Enter Credentials for MYSQL Datatbase in applicatio.properties.
- Install all the dependencies present in pom.xml file(mvn install).
- Start the server.
Setup for Database Operation:
- Create a user with Username and password as "twitterApp" or create a new Schema and generate your own username and passwords(make sure to include them in application.properties) in the spring-boot app.
- Run the DataBaseScripts.sql file to generate tables.
A Free Template is used for FrontEnd to make the design process faster and for further enhancements. The template is free under MIT license("https://github.com/creativetimofficial/paper-kit-2/blob/bootstrap4-development/LICENSE").
Reviewer Instructios: After everything is up and running, launch the frontend at localhost:4200/. The landing screen has Select Box with available functionalties. Select the First or Second option from the Select box, a new section will appear.
- For the first option, Enter a Twitter UserId to fetch the timeline. (PLEASE ENTER USERID WITHOUT "@", preferably all texts. for eg., "mkbhd") Clicking on the button will fetch that User's timeline.
- For the second option, Enter a hashtag you want to search(PLEASE ENTER WITHOUT "#") Clicking on the button will fetch latest tweets mentioning the hashtag.