Skip to content

Latest commit

 

History

History
35 lines (32 loc) · 1.36 KB

README.md

File metadata and controls

35 lines (32 loc) · 1.36 KB

Local run/development steps

  • start SmartMediaServer, and create configure file mediaConf.json
cd SmartMedia/SmartMediaServer
npm install
npm start

Use API example: For more Twitter API parameters, see Search Tweets

http://localhost:3000/getGitCloneInfo?search=eclipse-openj9/openj9
http://localhost:3000/getSearchTweets?q=openj9

Configure File

Credentials are needed for the server access (i.e., twitter, git, etc). In this case, please provide a --configFile=<path to config json file> when starting the server. The default value is --configFile=./mediaConf.json when using npm start.

Config file example:

{
    "twitter": {
        "consumer_key": "********************",
        "consumer_secret": "********************",
        "access_token_key": "********************",
        "access_token_secret": "********************"
	},
    "git": {
        "token" : "********************",
    }
}

Get your twitter token by Generating Twitter Access Token, and get your git token by Generating Git Access Tokens.