Giter Site home page Giter Site logo

cuibono_webservice's Introduction

The cuibono_webservice is a Django backend for the cuibono mobile application, allowing users to identify political ads based on their audio and receive information relevant to that ad in return.

cuibono_webservice's People

Contributors

boblannon avatar pselle avatar jprichter avatar ludflu avatar erikao avatar

Stargazers

Dana Bauer avatar Jamie Ly avatar

Watchers

James Cloos avatar

Forkers

hengesense

cuibono_webservice's Issues

new handler to import new ads and their meta-info

i'm going to make a new handler in /api/handlers.py which will receive several inputs (from a web form yet-to-be developed):

  • multimedia file (required)
  • title (required)
  • transcript (not required)
  • tags (not required)
  • articles (not required)

it will then execute the following steps:

  • generate an echoprint fingerprint
  • ingest the fingerprint and title to the solr/tokyo db
  • return the tokyo identifier
  • create a new Ad object in cuibono.db with meta info (including tokyo identifier)

build json object from ad object in AdHandler

the mobile client will be expecting json information returned as the result of an /ad/the_hash/ query. for right now, i'm going to make the json object using just information from the ad object that is currently being returned. in the future, though, this will also include information gleaned from other sources.

design basic look and feel of the cuibono site

we need a basic django template for the look and feel of the cuibono public-facing site. this should be the master template that lays down all of the nav links, css magicness, lovely colors and the logo (see issue #7)

benchmarking queries

need to test and see how it works if there is 18 seconds of the right ad and 2 seconds of something else - do we still get a hit?

(bob says yeah, prob)

django-piston complaining about iterating over many-related fields?

i commented out a couple of lines in /api/handlers.py because they're making piston complain. they're both lines that iterate over the tags and articles associated with an add. this seemed fine to me, but i guess it's too crude. something tells me we'll have to use piston's json emitter.

Piston/0.2.3rc1 (Django 1.3.1) crash report:

Method signature does not match.

Signature should be: the_hash

Exception was: 'ManyRelatedManager' object is not iterable

landing page for each ad

create a landing page for the app to direct to for each ad. this would have:

  • links to news articles
  • funder
  • title
  • transcript
  • a place for people to leave comments

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.