Skip to content
This repository has been archived by the owner on Jun 15, 2020. It is now read-only.

Commit

Permalink
API v2, using Apollo GraphQL
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertursua committed Apr 18, 2020
1 parent 48a9212 commit 06e9c9b
Show file tree
Hide file tree
Showing 107 changed files with 9,114 additions and 1,290 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@

[![License: ISC](https://img.shields.io/badge/License-ISC-blue.svg)](https://raw.githubusercontent.com/hyubs/ncovph/master/LICENSE)

**DEPRECATED** This project is now marked as deprecated. DOH migrated to a new dashboard using a closed Tableau workbook. Unless the situation changes within the week, this project will be discontinued.

API for COVID-19 data (Philippines)

**IMPORTANT:** Always check the updates section of the [website](https://ncovph.com) for changes. I post an update every 1-2 days. You can also follow this repo to get notified for commits but summaries are posted in the website.

## Docs
## Data Source

[https://ncovph.com](https://ncovph.com)
* [DOH COVID-19 Data Drop](https://drive.google.com/drive/folders/10VkiUA8x7TS2jkibhSZK1gmWxFM-EoZP)

## Dependencies

* [ncovph-parser](https://github.com/hyubs/ncovph-parser)

# License

All code except for the data under `functions/src/data` are under [ISC license](https://github.com/hyubs/ncovph/blob/master/LICENSE).

Data in `functions/src/data` and everything that is outputted by the API is governed by the [Privacy and Confidentiality Statement](https://drive.google.com/drive/folders/10VkiUA8x7TS2jkibhSZK1gmWxFM-EoZP) of the Republic of the Philippines Department of Health.
8 changes: 7 additions & 1 deletion firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"functions": {
"predeploy": [
"npm --prefix \"$RESOURCE_DIR\" run lint",
"npm --prefix \"$RESOURCE_DIR\" run build"
"npm --prefix \"$RESOURCE_DIR\" run build:clean",
"npm --prefix \"$RESOURCE_DIR\" run copy:graphql",
"npm --prefix \"$RESOURCE_DIR\" run copy:data"
],
"source": "functions"
},
Expand All @@ -27,6 +29,10 @@
{
"source": "/api{,/**/*}",
"function": "api"
},
{
"source": "/graphql{,/**/*}",
"function": "apollo"
}
]
}
Expand Down
30 changes: 26 additions & 4 deletions functions/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,38 @@
"root": true,
"rules": {
"class-methods-use-this": 0,
"import/extensions": 0
"import/extensions": 0,
"import/order": [
"error",
{
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
]
},
"settings": {
"import/extensions": [".js",".jsx",".ts",".tsx"],
"import/extensions": [
".js",
".jsx",
".ts",
".tsx"
],
"import/parsers": {
"@typescript-eslint/parser": [".ts",".tsx"]
"@typescript-eslint/parser": [
".ts",
".tsx"
]
},
"import/resolver": {
"node": {
"extensions": [".js",".jsx",".ts",".tsx"]
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
}
}
Expand Down
Loading

0 comments on commit 06e9c9b

Please sign in to comment.