Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.43 KB

README.md

File metadata and controls

61 lines (42 loc) · 1.43 KB

twitter hunter

Tech stack

Get started

Install dependencies

yarn install

Setup environment variables

Create .env file, with your Twitter Hunter & Twitter API key

REACT_APP_PRODUCT_HUNT_API_KEY="<your-key>"
TWITTER_CONSUMER_KEY="<your-key>"
TWITTER_CONSUMER_SECRET="<your-key>"
TWITTER_ACCESS_TOKEN_KEY="<your-key>"
TWITTER_ACCESS_TOKEN_SECRET="<your-key>"

Fetch products

This will call Product Hunt API, and store result in <ProjectRoot>/data/today.json

yarn fetch

Start preview

This will open browser to preview video

yarn start

Render video

This will store generated video in <ProjectRoot>/out/video.mp4

yarn build

Post to Twitter

yarn post-tweet