Skip to content

vprnet/google-s3-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Google-S3-JSON Used to push VPR Homepage Spreadsheet data to S3.

Based on the VPR app-template

Technology

  • Flask: Used for local development

  • Frozen-Flask: Freezes Flask application into a series of static files

  • Jinja: Python templating language

Set Up

  1. Install virtualenv

  2. Clone the repository

     $ git clone git@github.com:vprnet/app-template.git
    
  3. Create Virtual Environment in project

     $ cd app-template
     $ virtualenv venv
    
  4. Enter virtual environment

     $ source venv/bin/activate
    
  5. Install requirements

     $ pip install -r requirements.txt
    
  6. Copy _config.py as config.py

     $ cp main/_config.py main/config.py
    

These settings can be configured later (see "Deploy" below)

  1. Copy _access.json as access.json and insert credentials

##Develop

To run local server, get back to project root and run:

    $ python runserver.py

The project will be viewable at http://127.0.0.1:5000/

Deploy

  1. Create an S3 bucket to serve content using Amazon's documentation for hosting a static website

  2. Configure AWS settings in config.py

  3. Freeze files and push to S3

     $ python runserver.py freeze
    

Author

Matt Parrilla

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages