update to readme

This commit is contained in:
Sam
2021-02-17 13:10:57 +00:00
parent 64c56514b7
commit 5fd08123e5

View File

@@ -15,6 +15,7 @@ This README aims to document functionality of backend as well as required steps
- [COOP and Managing User Data Load](#coop-and-managing-user-data-load)
- [Product Data Load](#product-data-load)
- [GeoIP Setup](#geoip-setup)
- [Tags](#tags)
- [Development Utils](#development-utils)
- [Fake product data generation](#fake-product-data-generation)
@@ -257,6 +258,22 @@ Optional:
`sudo apt install libmaxminddb0 libmaxminddb-dev mmdb-bin`
## Tags
Both `Company` and `Product` models make use of tags.
### Load shopping taxonomy
To create the initial set of tags, we can use the `addtaxonomy` management command.
Reads the data from `datasets/shop-taxonomy.es-ES.txt` which is from google shopping
### Top-level tags
In order to extract the top level tags for use as categories, we can use the `extractparenttas` management command.
It saves the results to `datasets/top_tags.txt`
## Development Utils
### Fake product data generation