Skip to content

Commit 21dbb7e

Browse files
author
ExpDev07
committed
initial
0 parents  commit 21dbb7e

File tree

11 files changed

+465
-0
lines changed

11 files changed

+465
-0
lines changed

.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Port to serve app on.
2+
PORT = 5000
3+
4+
# Id of spreadsheet to collect data from (found in the URL).
5+
# https://docs.google.com/spreadsheets/d/1wQVypefm946ch4XDp37uZ-wartW4V7ILdg-qYiDXUHM/htmlview?usp=sharing&sle=true
6+
SPREADSHEET_ID = 1wQVypefm946ch4XDp37uZ-wartW4V7ILdg-qYiDXUHM
7+
8+
# A Google Cloud API key that has Google Sheets API enabled.
9+
GOOGLE_API_KEY = your_api_key

.gitignore

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Editor
2+
/.vscode
3+
4+
# Secret stuff
5+
/.env
6+
7+
# Byte-compiled / optimized / DLL files
8+
__pycache__/
9+
*.py[cod]
10+
11+
# C extensions
12+
*.so
13+
14+
# Distribution / packaging
15+
.Python
16+
env/
17+
build/
18+
develop-eggs/
19+
dist/
20+
downloads/
21+
eggs/
22+
.eggs/
23+
lib/
24+
lib64/
25+
parts/
26+
sdist/
27+
var/
28+
*.egg-info/
29+
.installed.cfg
30+
*.egg
31+
32+
# PyInstaller
33+
# Usually these files are written by a python script from a template
34+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
35+
*.manifest
36+
*.spec
37+
38+
# Installer logs
39+
pip-log.txt
40+
pip-delete-this-directory.txt
41+
42+
# Unit test / coverage reports
43+
htmlcov/
44+
.tox/
45+
.coverage
46+
.coverage.*
47+
.cache
48+
nosetests.xml
49+
coverage.xml
50+
*,cover
51+
52+
# Translations
53+
*.mo
54+
*.pot
55+
56+
# Django stuff:
57+
*.log
58+
59+
# Sphinx documentation
60+
docs/_build/
61+
62+
# PyBuilder
63+
target/

Pipfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[dev-packages]
7+
pylint = "*"
8+
9+
[packages]
10+
flask = "*"
11+
requests = "*"
12+
python-dotenv = "*"
13+
14+
[requires]
15+
python_version = "3.7"

Pipfile.lock

Lines changed: 243 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: gunicorn app:app

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# coronavirus-tracker - api
2+
3+
> The api is simple and written in python using Flask.
4+
5+
## Prerequisites
6+
7+
You will need the following things properly installed on your computer.
8+
9+
* [Python 3](https://www.python.org/downloads/)
10+
* [Flask](https://pypi.org/project/Flask/)
11+
* [pipenv](https://pypi.org/project/pipenv/)
12+
13+
## Installation
14+
15+
* `cd api`
16+
* `pipenv install`
17+
18+
## Running / Development
19+
20+
* `flask run`
21+
* Visit your app at [http://localhost:5000](http://localhost:5000).
22+
23+
### Running Tests
24+
25+
### Linting
26+
27+
### Building
28+
29+
### Deploying

app/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from flask import Flask
2+
3+
# Create the flask application.
4+
app = Flask(__name__)
5+
6+
# Import assets, models, routes, etc.
7+
from . import routes

app/routes/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import latest

0 commit comments

Comments
 (0)