Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 1.31 KB

README.md

File metadata and controls

19 lines (16 loc) · 1.31 KB

Create a video from a Medium Post using Amazon Polly and Amazon Comprehend

Read more about this code in here and here

To run it

  1. Clone this repo: git clone https://github.com/jonathanmv/faceless-influencer.git
  2. Create the audios, images, videos folders at the same level as your index.js file. The script assumes they exist.
  3. Install the dependencies: npm install. The dependencies also include ffmpeg and a configured aws-cli. The first to create the videos and the second to load the configuration variables for your aws developer account. You can skip the aws-cli if you add your aws secret and key to the configuration in the awsHelper.js file. Just don't make them public.
  4. Run it: npm start By default it will create a video from the latest post for the @jonathanmv user on Medium. You can create videos for different users by specified an environment variable like this: username=pepito postId=1vd44ea5 npm start. It will create a video from the post if found.

To run tests

Run npm test

To get access token

Run npm run token

To build docker and deploy image

Run npm run ecs-login Run npm run docker-deploy