Skip to content

Instantly share code, notes, and snippets.

@screamingmunch
Created November 9, 2013 00:44
Show Gist options
  • Save screamingmunch/7379955 to your computer and use it in GitHub Desktop.
Save screamingmunch/7379955 to your computer and use it in GitHub Desktop.
Project 2 - Pothole Patrol

##Pothole App

api's: google maps or leaflet

Amazon S3 (or paperclip)- photo storage

Twitter api

O-auth for user signin / Simple O-auth

###Models:

####USER

  • id
  • user_name
  • email
  • twitter/fb
  • has_many :votes, :potholes, :photos

####POTHOLE "location"

  • id
  • name
  • loc_latitude
  • loc_longitude
  • Description
  • user_id
  • photo_id
  • belongs_to :user
  • has_many :votes, :photos

####PHOTO

  • id
  • pothole_id
  • user_id
  • belongs_to :user, :pothole

####VOTE

  • user_id
  • pothole_id
  • count
  • belongs_to :user, :pothole
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment