Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ylogx/oneplanet-corona-backend

Coronavirus Tracker App's API Backend
https://github.com/ylogx/oneplanet-corona-backend

api cloud-run coronavirus docker golang google-cloud json

Last synced: 16 days ago
JSON representation

Coronavirus Tracker App's API Backend

Awesome Lists containing this project

README

        

# Coronavirus Tracker App's API Backend

This was sprint project to hash out the code and release an (Android & iOS) app in their corresponding Play/App Store over the weekend.

### Project Repos

* App: [ylogx/oneplanet-corona-app](https://github.com/ylogx/oneplanet-corona-app)
- The app is written in dart and works on both Android & iOS. App supports dark & light mode.
* ***API Backend***: [ylogx/oneplanet-corona-backend](https://github.com/ylogx/oneplanet-corona-backend)
- The app reads data from backend REST API written in GoLang, containerized using [Docker][docker] and deployed on Google Cloud using [Cloud Run][gc-cloud-run].
* App Webpage: [ylogx/oneplanet-corona-web](https://github.com/ylogx/oneplanet-corona-web)
- The app's webpage is a requirement for submitting the app to App/Play Store ([privacy page][privacy-page], tos page, etc.)

---

### Development

To run unit test, use: `make test`. To build the docker image, use: `make build_gcr_docker`.
To deploy on Google Cloud Run, use: `make gcr_pipeline`. There are tons of useful commands in Makefile.

### Deployment

Deployed at: [/home][api-home-response]
Response:
```json
{
"data": {
"Cases": 722196,
"Deaths": 33976,
"Recovered": 151766,
"Updated": 0,
"UpdatedAt": "2020-03-30T03:08:07Z",
"Active": 536454
},
"message": "success",
"status": true
}
```

[gc-cloud-run]: https://cloud.google.com/run/
[docker]: https://shubham.chaudhary.xyz/blog/docker/101
[privacy-page]: https://corona.oneplanet.us/privacy
[api-home-response]: https://api.corona.oneplanet.us/home