GithubHelp home page GithubHelp logo

node-twitter-feed's Introduction

Integrating Node With The Twitter Feed

In this project, we began to extend our understanding of Node.js and NPM modules. Together with Attila, I decided to try to integrate the Twit NPM Module. This task deepened our understanding of the Twitter API, route parameters, and the Node Express Server package. We also learned how to return a JSON object and hence built a very simple API of our own.

###Twit Feed : Basic Functionality & Lessons Learned Twitter is integrated to take its search cue from a route parameter in the URI. For example, twitter/bbc would return tweets labelled "bbc" by Twitter. We have chosen to display the text from the most recently returned tweet on a page, along with the time and user ID number. In the course of testing with Mocha-Casper-JS, we learnt that the tweets Twitter returns do not solely depend on the content of the tweet. For example, a tweet from user @bbc could be returned, even if the tweet itself does not specifically mention the term "bbc." In addition, Twitter seems to check URI links such that a t.co/string link that ultimately points to bbc.com would also be returned. Our tests could be improved; for example, mocks/spies/doubles could be integrated.

###Twit Feed Online A working example can be found here. The feed is based on the "bbc" search parameter, as is shown in the URI. Another example can be found here. This feed instead is based on the "lufc" search parameter, also shown in the URI.

###Our API We built a very simple API allowing any user to reference our JSON hash. This can be visited here with the extract code from the server file as follows.

app.get('/jason', function(request, response){
  response.json({"attila": "legend", "beanie_hat": "the best"});
});

###Core Technologies

  • Twit NPM Module
  • Node.js
  • Express Server
  • EJS Templating
  • jQuery & Javascript
  • Basic HTML/CSS

node-twitter-feed's People

Contributors

benhutchinson avatar tr1ckx avatar

Stargazers

Yvette Cook avatar

Watchers

James Cloos 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.