Skip to content

A Serverless Twitter Video Downloader. Built on Knative Eventing and Serving

License

Notifications You must be signed in to change notification settings

PratikMahajan/Serverless-Twitter-Video-Downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless Twitter Video Downloader

A Serverless Twitter Video Downloader. Built on Knative Eventing and Serving

A simple application which replies with the Video Download link when a Tweet with QUERY is posted

See Application Source Code here:
Eventing
Serving

Setup

Twitter Source (Eventing)

Add your Twitter API keys in Eventing-Secret.yaml file in deploy/ folder.

Check Eventing-Secret.yaml.example file in deploy/ for reference

Query

Add your Twitter search query as QUERY parameter in Eventing-ConfigMap.yaml
QUERY is taken as an environment variable in the application.
By default QUERY is set to Knative-Download-Video in the configmap

Sending Tweets (Serving)

Add your Twitter API keys in Serving-Secret.yaml file in deploy/ folder. Add Base64 of you twitter handle in lower case in SELF_HANDLE

Check Serving-Secret.yaml.example file in deploy/ for reference

Note

  • All the secrets should be in base64 format in the *-Secret.yaml \
  • Your secrets file should always be gitignored and dockerignored to avoid leaking secrets
  • Twitter Secrets can be different for Eventing and Serving app

Deploy

Makefile deploy

  1. Make sure you're logged in to your Kubernetes Cluster on your Terminal
  2. Install Knative on the cluster
    See Installing Knative
  3. Edit namespace in Makefile
  4. Use command make deploy on your Terminal to deploy the app to your cluster

Manual deploy

  1. Make sure you're logged in to your Kubernetes Cluster on your Terminal
  2. Install Knative on the cluster
    See Installing Knative
  3. Add label knative-eventing-injection=enabled to your namespace
  4. Apply all yaml configurations in deploy/

About

A Serverless Twitter Video Downloader. Built on Knative Eventing and Serving

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published