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.
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.
serverless dynamodb install
serverless offline start
to deploy to test
, just run
serverless deploy
The table is constructed so that it has
fingerprint
as keykey
as rangevalue
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.