dynamo-easy
  • Introduction
  • Browser vs. Node usage
  • Get Started
    • Installation
    • Jump into code
  • API Doc
    • Config
      • Dynamo-Easy Config
      • AWS SDK Config
    • Model
      • Decorators
      • Mapping Concept
      • CustomMapper
    • Dynamo Store
      • Model Requests
    • Multi-Model Requests
    • Expressions (conditions, update)
Powered by GitBook
On this page

Was this helpful?

  1. Get Started

Installation

npm i @shiftcoders/dynamo-easy --save
npm i reflect-metadata@^0.1.12 --save

Also install all the required peer dependencies listed in package.jsonof @shiftcoders/dynamo-easy

The reflect-metadata library should be imported only once in your entire application, because the Reflect object is meant to be a global singleton. Import it once in some entry file of your app.

entry.ts (or some other entry file)
import "reflect-metadata"

If you are using the reflect-metadata api in your project, make sure to include the typings. The type definitions are included in the npm package.

tsconfig.json
{
    "types": ["reflect-metadata"]
}

We make heavy usage of Typescript decorators, so you also need to enable the typescript features

tsconfig.ts
{
    "experimentalDecorators": true
    "emitDecoratorMetadata": true
}

PreviousBrowser vs. Node usageNextJump into code

Last updated 6 years ago

Was this helpful?