Skip to content

A serverless application to save and store covid19 data from Minas Gerais.

Notifications You must be signed in to change notification settings

lesimoes/COVID-MG

Repository files navigation

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.

About

A serverless application to save and store covid19 data from Minas Gerais.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published