npm install
serverless dynamodb install
serverless dynamodb start
after dynamodb started locally, go to http://localhost:4002/shell and create a receeve-emailevents-local table using this schema:
{
"TableName": "receeve-emailevents-local",
"KeySchema": [
{
"AttributeName": "id",
"KeyType": "HASH"
}
],
"AttributeDefinitions": [
{
"AttributeName": "id",
"AttributeType": "S"
}
],
"ProvisionedThroughput": {
"ReadCapacityUnits": 1,
"WriteCapacityUnits": 1
},
"GlobalSecondaryIndexes": [
{
"IndexName": "index_name_1",
"KeySchema": [
{
"AttributeName": "id",
"KeyType": "HASH"
}
],
"Projection": {
"ProjectionType": "INCLUDE",
"NonKeyAttributes": ["attribute_name_1"]
},
"ProvisionedThroughput": {
"ReadCapacityUnits": 1,
"WriteCapacityUnits": 1
}
}
]
}
npm run start
npm run build
npm run deploy:local
npm run deploy:staging
npm run test
npm run test:offline