/hero-backend-nodejs-dynamodb

Serverless NodeJS app

Primary LanguageTypeScript

Hero back

Instalation

  • Install the dependencies:
npm install
  • Start the development server before configure .env for conexion to dynamoDB, when starting the app the db migrations will be executed
ENVIRONMENT VALUE
NODE_ENV local
DB_HOST for local dynamoDB
npm start
  • Run tests
npm run test

Demo

AWS serverless configuration

service: hero-serverless
frameworkVersion: '2'
useDotenv: true
provider:
  name: aws
  runtime: nodejs12.x
  region: us-east-2
  memorySize: 2048
  stage: dev
  timeout: 10
  lambdaHashingVersion: 20201221
package:
  patterns:
    - '!src/**'
    - '!test/**'
functions:
  api:
    handler: handler.api
    events:
      - http: ANY {proxy+}
      - http: ANY /

Api documentation

License

MIT

Free Software, Hell Yeah!