Work in progress
A Node based implementation of quickQuote, exporting to twitter video API. Importing from a video or a live video stream.
Go here for original ruby on rails implementation that exports html embed code.
## Enviroment Variables
config.json
is in git ignore, but with the following code you can create one for your project.
{
"development":
{
"SPOKENDATA_BASEURL": "https://spokendata.com/api",
"SPOKENDATA_USERID": ,
"SPOKENDATA_APITOKEN": "",
"TWITTER_CONSUMER_KEY": "",
"TWITTER_CONSUMER_SECRET": "",
"TWITTER_CALLBACK": "http://127.0.0.1:3000/auth/twitter/callback",
"NODE_PATH": "."
},
"production":
{
"SPOKENDATA_BASEURL": "https://spokendata.com/api",
"SPOKENDATA_USERID": ,
"SPOKENDATA_APITOKEN": "",
"TWITTER_CONSUMER_KEY": "",
"TWITTER_CONSUMER_SECRET": "",
"TWITTER_CALLBACK": "http://getquickquote.com/auth/twitter/callback",
"NODE_PATH": "."
}
}
ENV variables for deployment on heroku
## Install dependencies
npm install
## Mongo db
brew update
brew install mongodb
create default data
folder
sudo mkdir /data/db
to run mongo db from bash
sudo mongod
to shut down
ctrl
+ z
## Run the app
npm start
as the video file is 207.5 mb is not included in the git repo, and the .gitignore
is set to exclude videos from the repo to stop it from upload. So here is alink to video file.
srt file of this video can also be found here
The srt is provided temporarily before hooking up the speech to text api, as it would be what the speech to text api. also thinking of providing option for user to upload own srt or to generate it with speech to text api...
app.json
contains the manifest style.
heroku addons:create mongolab:sandbox
the file .buildbacks
defines the installations for ffmpeg
https://github.com/pietrop/heroku-buildpack-ffmpeg-x264
https://github.com/heroku/heroku-buildpack-nodejs
From console, you can set the multi buildback to the application to install ffmpeg.
heroku buildpacks:set https://github.com/ddollar/heroku-buildpack-multi.git
heroku run "ffmpeg -version"