Skip to content

celfons/aws-lambda

Repository files navigation

SERVELESS POC

Stack:

NODE
TYPESCRIPT
SERVELESS
EXPRESS
KAFKA
DYNAMODB

Diagram:

image

Steps:

Clone this repository

git clone https://github.com/celfons/aws-lambda.git

Install dependencies

npm

Run this project

npm run start

Ready! Go to localhost:3000

API'S:

curl --location --request GET 'http://localhost:3000/v1/subscriptions'

curl --location --request POST 'http://localhost:3000/v1/subscriptions' \
--header 'Content-Type: application/json' \
--data-raw '{
  "customerId": "0fa109e0-0ff1-4ff2-b28e-2bb1a18b15ba",
  "offerId": "0fa109e0-0ff1-4ff2-b28e-2bb1a18b15ba",
  "startDate": "2021-05-02",
  "duration": "DAYS",
  "period": "30"
}'

JOB

rate(1 minute) - serveless.yml

Author

Marcel Fonseca Resende de Oliveira

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors