Here is an example application using the Aws::Record gem from AWS.
Instructions for macOS using RVM.
-
curl -sSL https://get.rvm.io | bash
-
(Fork and) clone this repository
git clone git@github.com:pas256/aws-record-example-ruby.git
-
Change into this directory let RVM install Ruby and create a Gemset
cd aws-record-example-ruby rvm use .
-
Install bundler so we can use that to manage dependencies
gem install bundler --no-document
-
Install the dependencies
bundle install
-
Configure AWS credentials if you haven't already.
-
Create DynamoDB tables
rails ddb:migrate
-
Run the server
rails server
-
Check out the site on localhost:3000
- Ruby 2.3 and Rails 5
This is loosely based on the Rails Getting Started Guide.
mkdir aws-record-example-ruby
cd aws-record-example-ruby
rails new .
bundle install
rails generate controller Welcome index
rails g scaffold Articles title text
# Delete and edit some files
Apache License Version 2.0