Simple app for creating tweet stubs from a Google Sheet.
To demo the default behavior set up for CivicTechTO, just visit:
civictechto.github.io/tweet-stub-helper
- 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.
The app does the following when you visit it:
- Grabs the data from a designated Google Spreadsheet*.
- Loops through rows, checking the date column* until it finds one in
the future. (Default:
date
) - On finding a future event, grabs the stub content from a specific column*.
(Default:
presenter_social_media
) - If no #hashtags or @handles found in that stub content, uses the
default_tweet
config*. - Redirects browser to a page that will auto-initiate a Tweet with that content.
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.
Configurable values can be set in _config.yml
.
bundle install
bundle exec jekyll serve