Giter Site home page Giter Site logo

nypl-tweetwall's Introduction

NYPL Tweetwall

Travis CI build status Code Climate rating

The NYPL Tweetwall presents content from library collections that are currently being discussed on Twitter. See it in action here!

Screenshot of NYPL Tweetwall

Configuration

Credentials for several APIs are required to update the Tweetwall:

They're passed via environment variables to the application, so creating a .env file for Foreman is recommended:

TWITTER_CONSUMER_KEY=foo
TWITTER_CONSUMER_SECRET=bar
TWITTER_OAUTH_TOKEN=baz
TWITTER_OAUTH_TOKEN_SECRET=qux
DIGITAL_COLLECTIONS_API_TOKEN=qux

Updating

There is one Rake task responsible for updating the Tweetwall:

foreman run rake tweetwall:update

It performs the following sub-tasks:

  • Deletes expired content
  • Deletes expired Tweets
  • Checks for new Tweets
  • Adds new content
  • Expires and warms the cache

Contributing

Bug reports, fixes, and new features are welcomed. If you'd like to contribute code, please:

  1. Fork the project

  2. Start a branch named for your new feature or bug

  3. Run (and add to, if possible) the unit tests:

```bash
bundle exec rake test
```
  1. Create a Pull Request

Thank you!

nypl-tweetwall's People

Contributors

lolibrarian avatar toddmazierski 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.