this project includes the following :
- JSON Retriever file made using expressJS (to be used soon).
- the main project made using Jquery ajax and codebird-js...you can see a demo right here
Five tweets Retriever is a simple webpage that allows you get the latest five tweets according to some valid twitter User name.. currentyl its implemented completely in JS with the support of codebird-js library to authenticate with Twitter's REST api.
but soon I will do the complete web app using expressJS .. you can check out the json retriver above.
here are some shorcuts from the web page.
actually, all you need to do is downloading the repository .. you can do it by the following :
- in the Command line type
git clone https://github.com/Ahmed-Ayman/FiveTweetsRetriver.git
. - if the first way didnt work then you will have to download git from from here, but don't worry for now ..you could just click the Clone or Download button above then download the Zip file.
open the index.html file in your browser then you will see a search icon..click it and type your twitter userName and click Enter or Escape or on the Close button above right or by touching the screen anywhere.
now you are supposed to see the latest five tweets of the username or an error message says that the user isnt found or there's no tweets yet.
if you are curious about using the JsonRetriver that is written in nodeJS. all you need to do is :
- go to the project folder and download Express and Twitter modules using this commend
npm install twitter express
- open the terminal , navigate to the project folder and type
node tweetsJson.js
then you will get a message telling you that the server is working under port 9999.
3. open your browser and go to localhost:9999/twitter/screenName
where schreenName = twitter's user_id eg, @username.
now you will see the 5 tweets in a json format.
I have left my twitter api authentication cardentials just to make it easier for the code reviewer to check out my work... I will delete it after a couple of days though.