Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

lolibrarian/nypl-tweetwall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

See what people are reading and tweeting about NYPL.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published