Skip to content

added backend documentation#39

Open
floraxue wants to merge 2 commits intogoodlyjunk:updated-READMEsfrom
floraxue:updated-READMEs
Open

added backend documentation#39
floraxue wants to merge 2 commits intogoodlyjunk:updated-READMEsfrom
floraxue:updated-READMEs

Conversation

@floraxue
Copy link

@floraxue floraxue commented Aug 3, 2016

No description provided.

CONTRIBUTING.md Outdated
The backend code is briefly summarized below:

**[overview of how the backend code functions]**.
First of all, raw data is loaded to the database by executing `load_data.py` (as what you can see in `README`). Sample raw data is located in `data/sample/schema/` and `data/sample/article/`. The schema is basically some questions (and child questions) related to an article. `load_data.py` will call data parsers in these files: `parse_schema.py`, `data/parse_schema.py` and `data/parse_document.py`. The two parser functions (i.e. `parse_schema()` and `parse_document()`)in `data/` parses specific articles and schemas related to that article. The parser in `parse_schema.py` (note that it's the one in the root folder!) is an object called `TopicsSchemaParser`, and it loads specific topics and schemas related to the article to our data models in `thresher/models.py`.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we perhaps rename one of the parse_schema files to clarify their meaning? It's quite confusing right now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments