Your daily dose of christmas porn
- ruby 2.7.2
bundle install
Check .env.example
for env
You have to configure Google Cloud Vision API and Google Drive API, please follow the QuickStart and the Authentication page to get your json keyfile.
You have to enable the following API:
- Google Vision
- Google Drive
- Google Spreadsheet
./bin/local.sh
Then visit http://127.0.0.1:4000/
Run:
bundle exec ruby bin/generate_post.rb
Check .env.example
for credentials
Run:
bundle exec ruby bin/tweet_noel.rb `date +%Y-%m-%d`
Add the following secrets:
FLICKR_API_KEY
: Flickr API keyGOOGLE_CREDENTIALS_BASE_64
: JSON key for the Google Vision API as url safe base64. You can use./bin/encode_google_vision_json_key.rb
to generate this fileACCESS_TOKEN
: Github Personal Access Token with at least write access to repositories: can trigger builds from push to develop