Skip to content

Node based implementation of quickQuote, exporting to twitter video API

License

Notifications You must be signed in to change notification settings

pietrop/quickQuoteNode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Work in progress

quickQuoteNode

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

FFMPEG

ffmpeg

## Mongo db

Install Mongo db

Install mongo db

brew update
brew install mongodb

create default data folder

sudo mkdir /data/db

run Mongo db

to run mongo db from bash

sudo mongod

to shut down

ctrl + z

## Run the app

npm start

video file

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...

Deployment

app.json contains the manifest style.

mondgodb on heroku

heroku addons:create mongolab:sandbox

ffmpeg - heroku buildback

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"

About

Node based implementation of quickQuote, exporting to twitter video API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published