Skip to content

Go echo API with swagger documentation to fetch covid19 cases details given the latitude and longitude of any location in India. It persists this data in mongodb. Added a caching layer using redis that persists each state/India cases data for 30mins (TTL). Deployment is done in Heroku. This is my first application using GO so any suggestions/imp…

License

Notifications You must be signed in to change notification settings

Divyadarshee/covid19IndiaGO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COVID19 Cases in India in GOlang

Deployment

Deployment in Heroku

Sources

  1. covid19-data: https://data.covid19india.org/v4/min/data.min.json
  2. Free reverse Geocoding: https://locationiq.com/

API endpoint

  1. base url: https://covid19-go-deploy.herokuapp.com/
  2. get cases and vaccinations complete details using:
    1. Path "/cases"
    2. query parameters:
      1. Latitude (only within India)
      2. Longitude (only within India)

Swagger endpoint

<app_url>/swagger/index.html

Example

https://covid19-go-deploy.herokuapp.com/cases?latitude=26.92&longitude=75.82 https://covid19-go-deploy.herokuapp.com/swagger/index.html

About

Go echo API with swagger documentation to fetch covid19 cases details given the latitude and longitude of any location in India. It persists this data in mongodb. Added a caching layer using redis that persists each state/India cases data for 30mins (TTL). Deployment is done in Heroku. This is my first application using GO so any suggestions/imp…

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published