amazon dynamodb - ruby rails dynamo db tutorial -


im trying develop app uses dynamodb aws db. have been trying last 2 days dynamoid gem throw computer out window.

http://blog.megam.co/archives/201

https://github.com/aws/aws-sdk-ruby

https://github.com/veraticus/dynamoid

does knows tutorial out there?

i started new rails app

rails new newapp -o 

added gemfile:

gem 'execjs' gem 'therubyracer' gem 'aws-sdk' gem 'dynamoid' 

then did

bundle install 

following created 2 initializes: dynamoid.rb:

    dynamoid.configure |config|       config.adapter = 'aws_sdk' # adapter establishes connection dynamodb servers using amazon's own aws gem.       config.namespace = "dev" # namespace tables created dynamoid other tables might have.       config.warn_on_scan = true # output warning logger when perform scan rather query on table.       config.partitioning = true # spread writes randomly across database. see "partitioning" below more.       config.partition_size = false#200  # determine key space size writes randomly spread across.       config.read_capacity = 1 # read capacity tables       config.write_capacity = 1 # write capacity tables     end 

and aws-sdk.rb:

    require "aws"     aws.config({       :access_key_id => '##########',       :secret_access_key => '#############################',     })                        

when do

rails s 

it not loads localhost

the dynamodb gem has bug rails 4.

  1. post error get, when type rails s.
  2. are using rails 4 or rails 3?

our rails project uses dynamoid https://github.com/indykish/nilavu , fake_dynamo.

we don't use aws-sdk.rb, works aws.yml

development:  bucket: megam use_ssl: false access_key_id: <acess_key> secret_access_key: <secret>  #dynamo_db_endpoint: localhost #dynamo_db_port: 4567 #dynamo_db_endpoint: dynamodb.ap-southeast-1.amazonaws.com # set regional endpoint 

Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -