coforma / swift-tech-challenge

MIT License
0 stars 0 forks source link

Add dynamodb local util and lib #50

Closed gmrabian closed 8 months ago

gmrabian commented 8 months ago

Summary

Since our data goes through some processing before storing it in the database we will use the AWS database for local development. This saves time in ensuring both local and deployed instances go through a similar seeding process.

Fixes #23

Type of change

Please delete options that are not relevant.

How To Test

Temporarily modify your PageHeader as follows

import dynamoClient from "../utils/dynamodb-lib";

export const PageHeader = async () => {
  const params = {
    TableName: "institutions",
    Key: { institutionId: 110608, recordType: "data" },
  };
  const response = await dynamoClient.get(params);
  console.log("response", response);
...

Checklist:

gmrabian commented 8 months ago

Closing and moving to #52 to resolve conflicts