Skip to content

CivicTechTO/tweet-stub-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tweet Stub Helper

Simple app for creating tweet stubs from a Google Sheet.

👀 Demo

To demo the default behavior set up for CivicTechTO, just visit:

civictechto.github.io/tweet-stub-helper

🛠️ Technologies Used

  • Twitter Web Intents. Provide popup-optimized flows for working with pre-composed fragments for tweeting.
  • Javascript
    • VueJS. Progressive framework for building user interfaces.
    • PapaParse. Powerful, in-browser CSV parser.
  • Bootstrap (CSS). HTML, CSS and JavaScript Framework that is used in front-end web development.
  • GitHub Pages.
    • Jekyll. A popular static site generator written in Ruby.

🚀 How It Works

The app does the following when you visit it:

  1. Grabs the data from a designated Google Spreadsheet*.
  2. Loops through rows, checking the date column* until it finds one in the future. (Default: date)
  3. On finding a future event, grabs the stub content from a specific column*. (Default: presenter_social_media)
  4. If no #hashtags or @handles found in that stub content, uses the default_tweet config*.
  5. Redirects browser to a page that will auto-initiate a Tweet with that content.

* configurable

Note: We have an intermediary button-click involved so that mobile apps open the web intent properly, rather than getting stuck redirecting to Twitter's web intent webpage in browser.

⚙️ Configuration

Configurable values can be set in _config.yml.

💻 Local Development

bundle install
bundle exec jekyll serve

About

Simple app for creating tweet stubs from a Google Sheet.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published