{"id":16721137,"url":"https://github.com/anishkny/realworld-dynamodb-lambda","last_synced_at":"2025-07-15T19:45:15.094Z","repository":{"id":20216291,"uuid":"89182558","full_name":"anishkny/realworld-dynamodb-lambda","owner":"anishkny","description":"λ serverless backend implementation for RealWorld using AWS DynamoDB + Lambda","archived":false,"fork":false,"pushed_at":"2023-06-21T14:04:18.000Z","size":697,"stargazers_count":241,"open_issues_count":13,"forks_count":61,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-31T09:07:06.579Z","etag":null,"topics":["aws","dynamodb","lambda","realworld","serverless"],"latest_commit_sha":null,"homepage":"https://realworld.io","language":"JavaScript","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/anishkny.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":"2017-04-24T00:43:26.000Z","updated_at":"2025-01-04T21:48:22.000Z","dependencies_parsed_at":"2024-06-20T13:01:34.719Z","dependency_job_id":"9462a0b2-1b15-4e20-92b5-48eff6cf5c08","html_url":"https://github.com/anishkny/realworld-dynamodb-lambda","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anishkny%2Frealworld-dynamodb-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anishkny%2Frealworld-dynamodb-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anishkny%2Frealworld-dynamodb-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anishkny%2Frealworld-dynamodb-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anishkny","download_url":"https://codeload.github.com/anishkny/realworld-dynamodb-lambda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247640462,"owners_count":20971557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","dynamodb","lambda","realworld","serverless"],"created_at":"2024-10-12T22:28:59.372Z","updated_at":"2025-04-07T11:06:36.683Z","avatar_url":"https://github.com/anishkny.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ![RealWorld Example App](https://rawgit.com/anishkny/realworld-dynamodb-lambda/master/lambda-node-logo.png)\n\n[![RealWorld Backend](https://img.shields.io/badge/realworld-backend-%23783578.svg)](http://realworld.io)\n[![Build Status](https://travis-ci.org/anishkny/realworld-dynamodb-lambda.svg?branch=master)](https://travis-ci.org/anishkny/realworld-dynamodb-lambda)\n[![Coverage Status](https://coveralls.io/repos/github/anishkny/realworld-dynamodb-lambda/badge.svg?branch=master)](https://coveralls.io/github/anishkny/realworld-dynamodb-lambda?branch=master)\n[![Greenkeeper badge](https://badges.greenkeeper.io/anishkny/realworld-dynamodb-lambda.svg)](https://greenkeeper.io/)\n[![Known Vulnerabilities](https://snyk.io/test/github/anishkny/realworld-dynamodb-lambda/badge.svg)](https://snyk.io/test/github/anishkny/realworld-dynamodb-lambda)\n[![Gitter](https://img.shields.io/gitter/room/realworld-dev/node-lambda-dynamodb.svg)](https://gitter.im/realworld-dev/node-lambda-dynamodb)\n\n\u003e ### AWS DynamoDB + Lambda codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the [RealWorld](https://github.com/gothinkster/realworld-example-apps) spec and API.\n\n\n### [Demo](https://anishkny.github.io/realworld-dynamodb-lambda/test-output/network.html)\n\nThis codebase was created to demonstrate a fully fledged fullstack application built with **AWS DynamoDB + Lambda** including CRUD operations, authentication, routing, pagination, and more.\n\nWe've gone to great lengths to adhere to the **AWS DynamoDB + Lambda** community styleguides \u0026 best practices.\n\nFor more information on how to this works with other frontends/backends, head over to the [RealWorld](https://github.com/gothinkster/realworld) repo.\n\n# Getting started\n\n*Requires Node 8 or higher*\n\nClone this repo, and cd into it:\n```\ngit clone https://github.com/anishkny/realworld-dynamodb-lambda\ncd realworld-dynamodb-lambda\n```\n\n## Starting the local server\n\n```\nnpm install\nnpm run start\n```\n\nThis should start local DynamoDB emulator and Serverless offline. You can now make API calls against `http://localhost:3000/api` like this:\n\n```\ncurl http://localhost:3000/api/articles\n\nServerless: GET /api/articles (λ: listArticles)\nServerless: The first request might take a few extra seconds\nServerless: [200] {\"statusCode\":200,\"headers\":{\"Access-Control-Allow-Origin\":\"*\",\"Access-Control-Allow-Credentials\":true},\"body\":\"{\\\"articles\\\":[]}\"}\n```\n\n## Running tests locally\n```\nnpm test\n```\nSee sample test run [log](https://travis-ci.org/anishkny/realworld-dynamodb-lambda) and [network traffic](https://anishkny.github.io/realworld-dynamodb-lambda/test-output/network.html).\n\n# How it works\n\n## Overview\nThis repo uses [Serverless Framework](https://serverless.com) to describe, test and deploy the [RealWorld REST API](https://github.com/gothinkster/realworld/blob/master/api/README.md#endpoints) to [AWS Lambda](https://aws.amazon.com/lambda/). AWS Lambda provides \"serverless\" cloud functions as a service. [AWS API Gateway](https://aws.amazon.com/api-gateway/) is used to expose the deployed Lambda functions as a HTTP REST API.\n\n![Architecture Diagram](architecture.svg)\n\n## API\nThe API is described in the [`serverless.yml`](serverless.yml) file. For example the following snippet instructs AWS Lambda to execute the `create` method in [`src/User.js`](src/User.js) whenever a `POST` method is called on `/api/users`:\n```\nfunctions:\n\n  ## Users API\n  createUser:\n    handler: src/User.create\n    events:\n      - http:\n          method: POST\n          path: /api/users\n          cors: true\n\n  ...\n```\n\n## Storage\nFor storage, [AWS DynamoDB](https://aws.amazon.com/dynamodb/) a managed serverless NoSQL database is used. Tables are created to store `users`, `articles` and `comments` also described in `serverless.yml` file. For example:\n```\nresources:\n  Resources:\n\n    UsersDynamoDBTable:\n      Type: 'AWS::DynamoDB::Table'\n      DeletionPolicy: Retain\n      Properties:\n        AttributeDefinitions:\n        ...\n```\n\n## Deployment\nTo deploy the code to AWS, simply execute:\n```\nnpm run deploy\n```\nThis will use `serverless` to deploy the API as described in `serverless.yml`.\n\nOnce deployed, you can test the deployed API by executing:\n```\nnpm run test:deployed\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanishkny%2Frealworld-dynamodb-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanishkny%2Frealworld-dynamodb-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanishkny%2Frealworld-dynamodb-lambda/lists"}