A VPR music video series, similar to NPR's Tiny Desk Concerts
The steps to get set up locally and release new versions when the spreadsheet is updated. These are commands that should be run from the command line.
- Clone the repository locally -
git@github.com:vprnet/live-from-the-fort.git
- Ensure you have Python 2.7 installed
- Install
pip
- Install virtualenv -
pip install virtualenv
- Change into the project directory -
cd live-from-the-fort
- Create a virtual environment for the app -
virtualenv venv
- Enter the virtual environment -
source venv/bin/activate
- Install the app requirements -
pip install -r requirements.txt
- Copy the config file -
cp app/_config.py app/config.py
- Configure the values in
app/config.py
- Upload the app to AWS S3 -
python app/index.py build
Remove 'build' argument from last step, so: python app/index.py
In May 2015, Google stopped supporting the Google Spreadsheets API, which Live From the Fort used to connect a spreadsheet to the page. We found a good replacement in gspread. Here are a few things to know about our new implementation:
- To start a new project, head to the Google Developer's Console.
- Click
create project
. - Under
APIs
, enable the Google Drive API. - In
Credentials
underOAuth
, create a new Client ID. - Select
Service Account
. You'll see a json file incoming with a private_key_id, private_key, client_email, client_id, and type. - Save the json file in your project. Be a good person and add it to your gitignore, too.
- The json file is what gets loaded and opened in sheet.py. Make sure the names match!
- Finally, share your google spreadsheet with the email provided in client_email.
- You'll also need to
pip install gspread
andpip install oauth2client
.
- Replace old YouTube links with the URL of the video that you can get from the embed code that YouTube provides.
- VuHaus video should be the URL from the embed code that VuHaus provides.
##Copyright and License
Copyright 2013 Vermont Public Radio
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions under the License.