Skip to content
Snippets Groups Projects
Commit 559cf25d authored by Ivy Wang's avatar Ivy Wang
Browse files

fix small bugs

parents ace42c4e 05ff5f66
No related branches found
No related tags found
No related merge requests found
# COVID-19-Data-Integration
Code for integrating COVID-19 data from various sources. Includes subnational data.
This project was intended to pull COVID-19 data from various sources and combine them into one accessible database.
## Backend
......@@ -42,9 +43,7 @@ There are a couple of ways to use the database:
### Database Structure
The database is in SQLite and is called sqlite_db.
When this database was designed, we intended to use SQLServer with Azure Data Factory, so we included the schema in data/OverallSchema.sql. However, due to time constraints, we switched to a SQLite implementation. So at this point, all tables were added through the run_main_initially.py file, which you can refer to for a better understanding of all the attributes of the tables. (This means that everything in the data folder is technically legacy code, but we haven't removed it in case it helps with an eventual migration to SQLServer.)
The database is in SQLite and is called sqlite_db. (If this database is ever moved to Azure Data Factory, we recommend switching to SQLServer.)
Here is an overview of the tables and their contents.
......
......@@ -2,8 +2,8 @@
Our frontend is comprised of a controller (Django, a python webserver api) and a view (React using Typescript, a Javascript framework for web apps). Below are the directions for configuring and running both services.
For most purposes, once everything necessary is downloaded and installed (see below for details), just run the following two commands to be able to use the UI:
- `python Django/manage.py runserver`
- `npm start`
- `python Django/manage.py runserver` (in this current directory)
- `npm start` (in clientview directory)
# Django
Product website: https://www.djangoproject.com/
......
......@@ -266,7 +266,7 @@ countries = pd.read_csv('country_countryCode.csv')
countries = countries.rename(columns={"Name": "country_name", "Code": "country_code"})
countries.to_sql('Countries',con=conn, if_exists = 'append', index=False)
#c.close()
c.close()
from initial_data_scripts.init_europe import init_italy, init_ukraine
from initial_data_scripts.init_asia import init_japan, init_korea, init_ina, init_china, init_india
from initial_data_scripts.init_global import init_jhu
......@@ -274,7 +274,6 @@ from initial_data_scripts.init_north_america import init_us, init_canada, init_g
from initial_data_scripts.init_south_america import init_brazil
from initial_data_scripts.init_global_v import init_global_p, init_global_v
init_italy()
init_ukraine()
init_jhu()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment