Skip to content

diclophis/picture.haus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

picture.haus is a photo gallery rails app with CBIR based image similarity that builds a deep network of your picture streams.

System dependencies

  1. ansible
  2. ruby 2.2.3
  3. ec2
  4. flynn

see ansible/ directory for more details

Configuration

for rails settings see config/

for system settings follow these instructions, and create these files

# example ~/.picture-haus-env.sh
#
# these define an overall region and ssh key settings, used by ansible during provisioning
#
export EC2_REGION="us-west-1"
export EC2_KEYPAIR="your-keypair-name"

# these AWS_XXX tokens should have permissions to allow creation
# of ec2 instances, route53 zones, etc for provisioning servers
#
export AWS_ACCESS_KEY_ID="your-ec2-access-key-id"
export AWS_SECRET_KEY="your-ec2-secret-key"

# these AWS_S3_XXX tokens should have the following permissions
# to allow creation of s3 objects in the given bucket
#
#  {
#   "Statement": [
#     {
#       "Effect": "Allow",
#       "Action": [
#         "s3:AbortMultipartUpload",
#         "s3:CreateBucket",
#         "s3:DeleteBucket",
#         "s3:DeleteObject",
#         "s3:PutObject",
#         "s3:PutObjectAcl"
#       ],
#       "Resource": [
#         "arn:aws:s3:::my-bucket-of-images/*"
#       ]
#     }
#   ]
#  }
#
export AWS_S3_ACCESS_KEY_ID="your-s3-access-key-id"
export AWS_S3_SECRET_KEY="your-s3-secret-key"
export AWS_S3_BUCKET="your-s3-bucket"

Database creation, Database initialization

see db/seeds.rb

How to run the test suite

make test

Deployment instructions

see FLYNN.md

Overview of Controllers/Models and Libraries

Libraries
  HasManyFriends
  ActsAsTaggableOnSteriods

Controllers
  Application
    current_page
    current_per_page

  Welcome
    index
    feed

Models
  Person
    has username
    has email
    has password
    has found many images 

  Image
    has title
    has src

  Finding
    has person
    has image

  Similarity
    has image
    has similar_image
    has rating

Research / Helpful Links / More README