{"id":15152540,"url":"https://github.com/devteds/rails-with-aws-dynamodb","last_synced_at":"2026-01-30T20:01:22.788Z","repository":{"id":255251825,"uuid":"848366229","full_name":"devteds/rails-with-aws-dynamodb","owner":"devteds","description":"A simple Rails API application with AWS DynamoDB as its database with aws_record as ORM layer.","archived":false,"fork":false,"pushed_at":"2024-08-27T22:39:35.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-12T04:13:40.642Z","etag":null,"topics":["aws","aws-dynamodb","devcontainer","docker","docker-compose","rails-api","rails-api-backend","ruby-on-rails","vscode-devcontainer"],"latest_commit_sha":null,"homepage":"https://www.devteds.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devteds.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-27T16:22:03.000Z","updated_at":"2024-08-28T19:06:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c611146-adb0-4b98-bbd5-fea67cc4583c","html_url":"https://github.com/devteds/rails-with-aws-dynamodb","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"36bcac855f100237e1c88b4c6cb19bf0bb94b49e"},"previous_names":["devteds/rails-with-aws-dynamodb"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devteds/rails-with-aws-dynamodb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devteds%2Frails-with-aws-dynamodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devteds%2Frails-with-aws-dynamodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devteds%2Frails-with-aws-dynamodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devteds%2Frails-with-aws-dynamodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devteds","download_url":"https://codeload.github.com/devteds/rails-with-aws-dynamodb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devteds%2Frails-with-aws-dynamodb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28918235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T19:10:10.838Z","status":"ssl_error","status_checked_at":"2026-01-30T19:06:40.573Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-dynamodb","devcontainer","docker","docker-compose","rails-api","rails-api-backend","ruby-on-rails","vscode-devcontainer"],"created_at":"2024-09-26T16:03:35.555Z","updated_at":"2026-01-30T20:01:22.763Z","avatar_url":"https://github.com/devteds.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DynamoDB for Rails Application - A quick start\n\nFollow the instructions in [this article for the step-by-step instruction](https://medium.com/@shettigarc/dynamodb-for-rails-developers-a-beginner-friendly-tutorial-669fe5a7b81a) on creating this Rails application and configuring AWS DynamoDB locally. \n\nIf you've read that and understand the steps, then here are the instructions on getting this app up and running. I use Docker \u0026 Docker Compose with [DevContainer](https://www.devteds.com/devcontainers-for-developers-multi-container-local-dev-setup/) and I primarily use VSCode. If you don't use VSCode, you can still get this running locally with docker \u0026 docker-compose.\n\n\n## Setup Docker Environment: `DevContainer + Docker Compose`\n\n\n```\ncp .devcontainer/devcontainer-example.json .devcontainer/devcontainer.json \n# Edit the devcontainer.json for path for user home directory containing .ssh or .aws. Or you can remove the mounts section completely\n\ncp docker-compose-example.yml docker-compose.yml\n# Edit to change AWS credential variables\n# Uncomment \"command: tail -f /dev/null\"\n```\n\nVSCode (command pallete): `DevContainers \u003e Rebuild and Reopen in Container`\n\nInside the container environment,\n\nBundle install:\n\n```\nbundle\n```\n\nLet's create table and load some test data into the local DynamoDB:\n\n```\nrails aws_record:migrate\nrails runner db/seeds.rb\n```\n\nVerify the data on Rails console:\n\n```\nrails c\n\u003e Product.scan\n```\n\nRun rails server:\n\n```\nrails s -b 0.0.0.0\n```\n\ncURL or use the browser to hit: `http://localhost:\u003cHOST-PORT\u003e/products`\n\n\n```\ncurl -s http://localhost:3400/products | jq\ncurl -v http://localhost:3400/products\n```\n\n\n## Setup Docker Compose Environment (No DevContainer or VSCode)\n\n```\ncp docker-compose-example.yml docker-compose.yml\n# Edit to change AWS credential variables; update host ports for api \u0026 dynamo\n\ndocker-compose build\n```\n\nRun migratin, load some test data and verify using Rails Console:\n\n```\ndocker-compose run --rm api bash\n\u003e bundle\n\u003e rails aws_record:migrate\n\u003e rails runner db/seeds.rb\n\u003e rails c\n  \u003e Product.scan\n  \u003e exit\n\u003e exit   \n```\n\nRun the app \u0026 verify\n\n```\ndocker-compose up\n```\n\ncURL or use the browser to hit: `http://localhost:\u003cHOST-PORT\u003e/products`\n\n\n```\ncurl -s http://localhost:3400/products | jq\ncurl -v http://localhost:3400/products\n```\n\n## Tools \u0026 Versions I used\n\n- MacOS - M1\n- Docker 24.0.2, build cb74dfc\n- Docker Compose version v2.18.1\n- VSCode 1.87.2 (Universal)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevteds%2Frails-with-aws-dynamodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevteds%2Frails-with-aws-dynamodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevteds%2Frails-with-aws-dynamodb/lists"}