Skip to content

Latest commit

 

History

History
67 lines (41 loc) · 1.48 KB

README.md

File metadata and controls

67 lines (41 loc) · 1.48 KB

COVID-MG 😷

Node.js CI

A serverless application to store COVID19 data from Minas Gerais in DynamoDB. 😮

Warning: This project is not completed, yet! Checkout the checklist.

How it works

architecture

Tooling:

🐳 Docker
☁️ AWS Lambda
💾 AWS S3
▶️ AWS SQS
🎆 Serverless Framework

and some: Enums, Factories and DIs 😎

Checklist

[x] Get covid19 data (lambda: Scheduler)
[x] Stores data on S3 Bucket (lambda: Scheduler)
[x] Triggers Lambda when a csv file was created
[x] Sends each line as a message to SQS (lambda: S3Listener)
[x] Triggers a lambda to get messages and store on DynamoDB (lambda: SQSListener)
[ ] Provides data as an API

How to intstall and run with docker 🐳 + nodemon 😁

Build and run (first time)
docker-compose up --b

Run
docker-compose up

How to intstall and run local 💻

Install
npm install

and run
npm run invoke-local

How to deploy on AWS ☁️

Install
npm install

and just run
npm run deploy:prod

then run
npm run invoke:scheduler-prod

To activate automatic scheduler change 'autostart' property in serverless.yml

Made with ❤️ and ☕ by lesimoes.