Coder Social home page Coder Social logo

26thandcalifornia-v1.0's Introduction

26th and California

A Javascript app to browse and visualize data from the Supreme Chi-Town Coding Crew's Cook County Jail API (source).

Install and run server

Clone the repo:

git clone git://github.com/sc3/26thandcalifornia.git 

If you have Python, start a local server:

cd 26thandcalifornia/app
python -m SimpleHTTPServer

Now visit http://localhost:8000 in your web browser.

Development

Create Backbone views based on our special JailView extended view object and export them as AMD modules.

If you create a file called views/StatisticsandmeasurementsView.js, it will automatically be made available at #statisticsandmeasurements/.

Here's a very basic view:

define([
  'views/JailView',
],
function(JailView) {
  var StatisticsandmeasurementsView = JailView.extend({
    render: function() {
      this.$el.html('Hello world');
      return this;
    }
  });
  return StatisticsandmeasurementsView;
});

JailView objects can also accept a collection to load before rendering:

define([
  'views/JailView',
  'collections/InmateCollection',
],
function(JailView, InmateCollection) {
  var LoadcollectionView = JailView.extend({
    collection: new InmateCollection(),
    render: function() {
      this.$el.html('This renders once inmate data is retrieved.');
      return this;
    }
  });
  return LoadcollectionView;
});

Deployment

You'll need s3cmd. In OS X you can brew install s3cmd and in Ubuntu sudo apt-get install s3cmd should do the trick.

Configure s3cmd with your credentials: s3cmd --configure

Now run deploy.sh to sync files: ./deploy.sh

26thandcalifornia-v1.0's People

Contributors

andymboyle avatar aowola avatar bepetersn avatar derekeder avatar eads avatar jenlindner avatar jimglover avatar joegermuska avatar nwinklareth avatar sarahelizabeth avatar wilbertom avatar

Watchers

 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.