You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ Please write new test cases for new code you create.
13
13
* If you're unable to find an open issue, [open a new one](https://github.com/ExpDev07/coronavirus-tracker-api/issues/new). Be sure to include a **title and clear description**, as much relevant information as possible
14
14
* Open a new [GitHub Pull Request to coronavirus-tracker-api](https://github.com/ExpDev07/coronavirus-tracker-api/pulls) with a clear list of what you've done (read more about [pull requests](http://help.github.com/pull-requests/)). Include the relevant issue number if applicable.
15
15
* We will love you forever if you include unit tests. We can always use more test coverage
16
+
* If you have updated [Pipefile](./Pipfile), you have to update `Pipfile.lock`, `requirements.txt` and `requirements-dev.txt`. See section [Update requirements files](./README.md#update-requirements-files).
Copy file name to clipboardExpand all lines: README.md
+16-6Lines changed: 16 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,15 +32,15 @@ Support multiple data-sources.
32
32
33
33
Currently 2 different data-sources are available to retrieve the data:
34
34
35
-
***jhu** - https://github.com/CSSEGISandData/COVID-19 - Worldwide Data repository operated by the Johns Hopkins University Center for Systems Science and Engineering (JHU CSSE).
35
+
***jhu** - https://github.com/CSSEGISandData/COVID-19 - Worldwide Data repository operated by the Johns Hopkins University Center for Systems Science and Engineering (JHU CSSE).
36
36
37
37
***csbs** - https://www.csbs.org/information-covid-19-coronavirus - U.S. County data that comes from the Conference of State Bank Supervisors.
38
38
39
39
__jhu__ data-source will be used as a default source if you don't specify a *source parameter* in your request.
40
40
41
41
## API Reference
42
42
43
-
All endpoints are located at ``coronavirus-tracker-api.herokuapp.com/v2/`` and are accessible via https. For instance: you can get data per location by using this URL:
43
+
All endpoints are located at ``coronavirus-tracker-api.herokuapp.com/v2/`` and are accessible via https. For instance: you can get data per location by using this URL:
You can open the URL in your browser to further inspect the response. Or you can make this curl call in your terminal to see the prettified response:
@@ -56,7 +56,7 @@ Consume our API through [our super awesome and interactive SwaggerUI](https://co
56
56
57
57
The [OpenAPI](https://swagger.io/docs/specification/about/) json definition can be downloaded at https://coronavirus-tracker-api.herokuapp.com/openapi.json
58
58
59
-
## API Endpoints
59
+
## API Endpoints
60
60
61
61
### Sources Endpoint
62
62
@@ -365,8 +365,9 @@ These are the available API wrappers created by the community. They are not nece
365
365
366
366
### C#
367
367
368
-
*[CovidSharp by @Abdirahiim](https://github.com/Abdirahiim/covidtrackerapiwrapper)
368
+
*[CovidSharp by @Abdirahiim](https://github.com/Abdirahiim/covidtrackerapiwrapper)
369
369
*[Covid19Tracker.NET by @egbakou](https://github.com/egbakou/Covid19Tracker.NET)
370
+
*[CovidDotNet by @degant](https://github.com/degant/CovidDotNet)
370
371
371
372
### Python
372
373
@@ -408,12 +409,12 @@ You will need the following things properly installed on your computer.
408
409
3. Create virtual environment and install all dependencies `$ pipenv sync --dev`
409
410
4. Activate/enter the virtual environment `$ pipenv shell`
410
411
411
-
And don't despair if don't get the python setup working on the first try. No one did. Guido got pretty close... once. But that's another story. Good luck.
412
+
And don't despair if don't get the python setup working on the first try. No one did. Guido got pretty close... once. But that's another story. Good luck.
412
413
413
414
## Running / Development
414
415
415
416
*`pipenv run dev`
416
-
* Visit your app at [http://localhost:5000](http://localhost:5000).
417
+
* Visit your app at [http://localhost:8000](http://localhost:8000).
417
418
418
419
### Running Tests
419
420
> [pytest](https://docs.pytest.org/en/latest/)
@@ -437,6 +438,14 @@ pipenv run lint
437
438
pipenv run fmt
438
439
```
439
440
441
+
### Update requirements files
442
+
443
+
```bash
444
+
invoke generate-reqs
445
+
```
446
+
447
+
[Pipfile.lock](./Pipfile.lock) will be automatically updated during `pipenv install`.
448
+
440
449
### Building
441
450
442
451
### Deploying
@@ -470,6 +479,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
0 commit comments