- 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
- deployed in aws with lambda functions
- https://6axt4zt89l.execute-api.us-east-2.amazonaws.com/dev/
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 /
MIT
Free Software, Hell Yeah!