Giter VIP home page Giter VIP logo

latimes-table-stacker's Introduction

ooooooooooooo            .o8       oooo             .oooooo..o     .                       oooo
8'   888   `8           "888       `888            d8P'    `Y8   .o8                       `888
     888       .oooo.    888oooo.   888   .ooooo.  Y88bo.      .o888oo  .oooo.    .ooooo.   888  oooo   .ooooo.  oooo d8b
     888      `P  )88b   d88' `88b  888  d88' `88b  `"Y8888o.    888   `P  )88b  d88' `"Y8  888 .8P'   d88' `88b `888""8P
     888       .oP"888   888   888  888  888ooo888      `"Y88b   888    .oP"888  888        888888.    888ooo888  888
     888      d8(  888   888   888  888  888    .o oo     .d8P   888 . d8(  888  888   .o8  888 `88b.  888    .o  888
    o888o     `Y888""8o  `Y8bod8P' o888o `Y8bod8P' 8""88888P'    "888" `Y888""8o `Y8bod8P' o888o o888o `Y8bod8P' d888b    

What is this?

Publish spreadsheets as interactive tables. And do it on deadline.

Table of Contents

Quickstart To Get Up And Running

  • Clone this repo to wherever it is on your machine that you work on your projects

      [email protected]:SCPR/latimes-table-stacker.git
    
  • Change into that directory

      cd latimes-table-stacker
    
  • Create your virtualenv and install the project/application requirements using pip

      mkvirtualenv table-stacker
      pip install -r requirements.txt
    
  • Create the project's database

      python manage.py syncdb
      python manage.py migrate
    
  • Let's look at the databases we've already created. Jump back to your terminal window and run the build command. This instructs our application to bake out a static site using the instructions in settings.py and the table recipes in the yaml directory.

      python manage.py build
    
  • Now let's Launch the static version of the site

      python manage.py buildserver
    

If everything clicked, you should see your demo site up and running with all the example tables at http://localhost:8000.

The databases we've created with this tool include:

Now you're ready to make your own using the well-written table-stacker documentation


Features

  • Convert a CSV file into an interactive HTML table that sorts, filters and paginates.
  • Quickly publish as static files.
  • Sync static files with Amazon S3 for instant publishing.
  • Instantly syndicate data as CSV, XLS and JSON.
  • Post an RSS feed and sitemap that promote the latest data.

Resources


Building A Mac OS Python Dev Environment

  • Assumming homebrew is installed...

    • Install homebrew python

        cd /System/Library/Frameworks/Python.framework/Versions
        sudo rm Current
        brew install python
        brew doctor
        which python
        which pip
        pip install --upgrade setuptools
        pip install --upgrade distribute
        pip install virtualenv
        pip install virtualenvwrapper
        python --version
        source /usr/local/bin/virtualenvwrapper.sh
        sudo ln -s /usr/local/Cellar/python/2.7.8_2 /System/Library/Frameworks/Python.framework/Versions/Current
      
    • Configure $PATH variables for python, virtualenv

        # homebrew path
        export PATH="/usr/local/bin:$PATH"
      
        # virtualenvwrapper settings
        export WORKON_HOME=$HOME/.virtualenvs
        export PIP_VIRTUALENV_BASE=$WORKON_HOME
        export PIP_RESPECT_VIRTUALENV=true
        source /usr/local/bin/virtualenvwrapper.sh
      
    • Install MySQL via homebrew

        brew remove mysql
        brew cleanup
        launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
        rm ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
        sudo rm -rf /usr/local/var/mysql
        brew install mysql
        ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents
      
    • Getting mysql up and running

        mysql.server start
        mysql_secure_installation
        mysql -u root -p
        SHOW DATABASES;
        SET default_storage_engine=MYISAM;
      

latimes-table-stacker's People

Contributors

chrislkeller avatar kevinschaul avatar palewire avatar

Stargazers

 avatar  avatar

Watchers

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