Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.21 KB

README.md

File metadata and controls

40 lines (26 loc) · 1.21 KB

Thumbmark Storage backend

This an example backend for the Thumbmark Storage. It is implemented using the Serverless framework, written in Typescript.

It's a simple lambda function with a dynamodb table. Read more about this project from the top level readme file.

Installation steps

To initialize, clone the repo and run:

npm install

Create your .env file. Have a look at the .env.example for ... an example.

To run things locally, you can do the following.

⚠️ NOTE! look into serverless.yml for some comments first. This seems to fail with the conditional ProvisionedThroughput configuration. Change that first and then run locally, so:

serverless dynamodb install
serverless offline start

to deploy to test, just run

serverless deploy

The dynamodb table

The table is constructed so that it has

  • fingerprint as key
  • key as range
  • value as the column for the values

fingerprint actually concatenates the namespace and the fingerprint. And key is implemented as a range key, since it allows you to query the stored values if that would be needed. For now though, this function isn't implemented, but it could be later.