Skip to content

Commit

Permalink
DEV: add sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael O'Brien committed Sep 13, 2021
1 parent fb99a73 commit 9236594
Show file tree
Hide file tree
Showing 10 changed files with 2,074 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ node_modules
dist/
coverage
.coveralls.yml
samples
4 changes: 4 additions & 0 deletions samples/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#
# Makefile - Makefile for samples
#

12 changes: 12 additions & 0 deletions samples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Metrics samples
===

<!--
![Samples](https://www.sensedeep.com/images/onetable-logo.png)
-->

These samples are provided to help you get started with DynamoDb Metrics.

To get you going quickly, try out the working samples in the OneTable repository at:

* [metrics Overview Sample](https://github.com/sensedeep/dynamodb-metrics/tree/main/samples/overview) &mdash; A quick tour through DynamoDB Metrics.
25 changes: 25 additions & 0 deletions samples/overview/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-node",
"request": "launch",
"name": "Debug Overview",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/src/index.js",
"runtimeArgs": ["--preserve-symlinks"]
}, {
"type": "node",
"request": "launch",
"name": "TypeScript Debug Overview",
"program": "${workspaceFolder}/src/index.ts",
"preLaunchTask": "tsc: build - tsconfig.json",
"outFiles": ["${workspaceFolder}/dist/**/*.js"]
}
]
}
16 changes: 16 additions & 0 deletions samples/overview/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# Makefile for samples/crud
#
all: build

build:
npm run build

run:
node dist/index.js

configure:
npm install

debug:
code .
27 changes: 27 additions & 0 deletions samples/overview/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Metrics Overview sample
===

This sample demonstrates how to configure Metrics.

## Read the Code

* [Overview Source](https://github.com/sensedeep/dynamodb-metrics/tree/main/samples/overview/src/index.js)

## Building

```
make configure
make build
```

## Run

```
make run
```

## To debug in VS CODE

```
code .
```
Loading

0 comments on commit 9236594

Please sign in to comment.