GithubHelp home page GithubHelp logo

benrito / quickquotenode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pietrop/quickquotenode

0.0 2.0 0.0 685 KB

Node based implementation of quickQuote, exporting to twitter video API

License: MIT License

JavaScript 22.89% CSS 62.20% HTML 14.91%

quickquotenode's Introduction

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"

quickquotenode's People

Contributors

pietrop avatar

Watchers

Ben Moskowitz avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.