Skip to content

awood45/aws-record-example-ruby

Repository files navigation

Example Ruby on Rails application using AWS::Record

Here is an example application using the Aws::Record gem from AWS.

Getting Started

Instructions for macOS using RVM.

  1. Install RVM

    curl -sSL https://get.rvm.io | bash
    
  2. (Fork and) clone this repository

    git clone git@github.com:pas256/aws-record-example-ruby.git
    
  3. Change into this directory let RVM install Ruby and create a Gemset

    cd aws-record-example-ruby
    rvm use .
    
  4. Install bundler so we can use that to manage dependencies

    gem install bundler --no-document
    
  5. Install the dependencies

    bundle install
    
  6. Configure AWS credentials if you haven't already.

  7. Create DynamoDB tables

    rails ddb:migrate
    
  8. Run the server

    rails server
    
  9. Check out the site on localhost:3000

Versions

  • Ruby 2.3 and Rails 5

How was this created?

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

License

Apache License Version 2.0

About

An example app using the AWS::Record gem for Ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published