How laeyoung/covid-19-api works
Main Components
a. Data Sources Layer:
• JHU CSSE COVID-19 Repository
• KCDC (Korea Centers for Disease Control)
• As external cloud systems
b. Data Processing Layer:
• Create components for the API data processors:
• JHU Data Processor (jhu-edu.js)
• Korea KCDC Processor (korea-kcdc.js)
• To their respective data sources
c. Dataset Layer:
• Static dataset files as a data store:
• cities.json
• countries.json
• country-codes.json
• iso2-country-loc.json
• states.json
d. API Server Layer:
• Main Express.js server (server.js)
• API endpoints:
• /jhu-edu/brief
• /jhu-edu/latest
• /jhu-edu/timeseries
e. Client Layer:
• Example consumers:
• Corona Board
• WordPress Plugin
• Corona Three
Relationships and Data Flow
• External sources → Data processors
• Data processors → API server
• Dataset files → API server
• API server → Client applications
Additional Elements
• A Docker container boundary (referenced by Dockerfile)
• Swagger documentation integration (swagger.yaml)
• Ainize deployment platform
Specific Implementation Details
• Request/Response formats for each endpoint
• Data transformation flow
• Caching mechanisms (if any)
• Docker containerization boundary