Skip to content

dantori99/qldb-simple-wallet

Repository files navigation

QLDB Simple Demo

This is a step by step simple application to demonstrate the basics of Amazon QLDB.

Run the demo

This simple demo application is built using the Serverless Framework.

To run the application use the following command:

sls deploy

and this will create the CloudFormation stack and deploy all resources

Updates

Jul-11-2022 Fundamental rewrite to a Wallet application that handles a number of events:

  • Create Wallet
  • add Balance
  • withdraw Balance
  • Delete Wallet
  • Get Wallet

Create Wallet

Create Wallet is an HTTP POST using the following JSON

{
	"email" : "{uptoyou@formatemail:STRING}",
	"name" : "{uptoyou:STRING}"
}

add Balance

add Balance is an HTTP PUT using the following JSON format

{
	"amountToAdd": insertNumber,
}

withdraw Balance

withdraw Balance is an HTTP PUT using the following JSON format

{
	"amountToWithdraw": insertNumber,
}

Delete Wallet

Delete Wallet is an HTTP DELETE using guid that is inserted in the event parameters.

Get Licence

Get Wallet is an HTTP GET using guid that is inserted in the event parameters.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published