Skip to content

JanitaM/hyper-adapter-dynamodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

86cff35 · Nov 29, 2021

History

19 Commits
Oct 10, 2021
Nov 28, 2021
Nov 25, 2021
Oct 10, 2021
Nov 23, 2021
Nov 28, 2021
Oct 10, 2021
Nov 23, 2021
Nov 28, 2021
Nov 4, 2021
Oct 10, 2021
Nov 25, 2021
Oct 10, 2021
Nov 23, 2021
Oct 10, 2021

Repository files navigation

README

hyper data adapter using AWS DynamoDB as service

About

This adapter uses single table design. All data for this adapter is stored in a single DynamoDB table with a partition key named "pk" and a sort key named "sk". The hard-coded DynamoDB table name is "hyper-test" The tablename passed from hyper to this adapter becomes the "pk" The id passed from hyper to this adapter becomes the "sk" Everything else is stored in normal document format.

**Note: as of this Nov. 2021, use deno version 1.15.3 to avoid conflicts with https://x.nest.land/hyper-app-opine deno upgrade --version 1.15.3

How to setup and use with gitpod

  1. Create a DynamoDB table on AWS. Name it hyper-test. Partion key is string type and named "pk". Sort key is string type and named "sk".
  2. Create an AWS IAM user with programmatic access and the ability to perform actions on this table.
  3. On gitpod, configure 3 environment variables (https://www.gitpod.io/docs/environment-variables) awsAccessKeyId awsSecretKey region
  4. Spin up a gitpod instance by appending "gitpod.io/#" to the repo (gitpod.io/#https://github.com/cawilson1/hyper-adapter-dynamodb). You now have a coding environment with the DynamoDB environment variables injected.
  5. Downgrade deno to a non-conflicting version: deno upgrade --version 1.15.3
  6. Start the dev env by running "./scripts/harness.sh"
  7. Do cool stuff

Use with hyper-test

  1. In a terminal, start hyper "./scripts/harness.sh"
  2. In another terminal, run HYPER=http://localhost:6363/test deno test --allow-net --allow-env --import-map=https://x.nest.land/hyper-test@0.0.2/import_map.json https://x.nest.land/hyper-test@0.0.2/mod.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published