This was created using Heroku's template project, a chance for me to explore Express JS, Embedded Javascript Templates, React, as well as various API integrations including: Twitter, Darksky (formerly forecast.io), and Strava.
Make sure you have Node.js and the Heroku Toolbelt installed.
$ git clone git@github.com:mcsharps/Personal-Site-v3.git
$ cd Personal-Site-v3
$ npm install
Add a .env file (twitter client looks at this) that looks something like this:
TIMES=XXX
consumerKey=XXXXXX
consumerSecret=XXXXX
accessToken=XXXX
accessTokenSecret=XXXXX
callBackUrl=XXX
Add a data directory with a forecast_config file, strava_config file.
Each file should be a json like this:
forecast_config
{
"APIKey": "XXXX",
"timeout": XXXX
}
strava_config
{
"access_token" :"XXXXX"
, "client_id" :"XXXX"
, "client_secret" :"XXXXX"
, "redirect_uri" :"XXXXXXX"
}
after those are configured with keys run
$ gulp
//gulp to digest latest changes
$ heroku local
Your app should now be running on localhost:5000.