Git Product home page Git Product logo

myreposearch's Introduction

myRepoSearch

Application Summary:

The application

Consumes the GitHub API public repository to retrieve the repositoy Names.
GitHubRepoSearchService retrieves the repositoryNames by keyword, attributes like sort and order
Access the Twitter API by with credentials. The following are the keys to access the Twitter API.
Bearer key will be generated using the credentials to get the access for the Tweets search by GitHub Project 
	oauth.consumerKey
	oauth.consumerSecret
	
By creating an application at https://dev.twitter.com	we can get all the above values.

TweetsSearchService fetches the recent tweets by repositoryName.
Currently to achieve the end to end connectivity the parameters are limited. 
	
The created json file will be saved at user home directory to avoid permission issues.
File Name is configurable.

Used the right User-Agent to confiigure user.agent : http://www.whoishostingthis.com/tools/user-agent/

Configuration: The following are the application specific settings needs to be configured and this file should be in class path which bundles in jar The given consumerKey and consumerSecret are just show the sample datay, may not work.

app-settings.properties
	
github.api.search.keyword=reactive
github.api.search.sort=stars

#default is descending order only
github.api.search.order=desc

oauth.consumerKey=wGxaoagLZdM4tYtTEwesse8GGgqC
oauth.consumerSecret=uviCwqj2UXuJP3HgJsdfs0GjykPQ3SYY0Lb4evT5vr72NsabSmjdYT
user.agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36

tweets.limit=10

# will be stored at User Home directory
json.fileName=Result.json

Save the configuration file at a base directory. All the Sample-*.json , *.properties files are given.

HOW To Run:

The following command compiles,packages into one single jar file runnable Main class: com.wday.search.api.core.MainApp
	mvn package -Pprod

The program can be run from the command line or with the following Maven command.
Run the following way to set up the application mandatory configuration properties
	mvn exec:java -DsettingsFile="my-app-settings.properties"

Its will picks the default values for application settings. 
Strongly Recommend not to use and may not run due to invalid Credentials.
	mvn exec:java  

myreposearch's People

Contributors

dearnani avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.