2019-03-10 23:17:43 +00:00
|
|
|
# cjvt-valency
|
2019-03-07 08:00:01 +00:00
|
|
|
|
|
|
|
## Components
|
|
|
|
|
|
|
|
|
|
|
|
### Database (2 containers)
|
|
|
|
Input:
|
|
|
|
|
|
|
|
* ssj500k.xml
|
|
|
|
* kres.xml
|
|
|
|
* kres_SRL.json
|
|
|
|
|
|
|
|
Intermediate:
|
|
|
|
|
2019-03-07 08:11:54 +00:00
|
|
|
* ssj500k.json **HERE HERE**
|
2019-03-07 08:00:01 +00:00
|
|
|
* kres.json
|
|
|
|
|
|
|
|
Output:
|
|
|
|
|
|
|
|
* DB containing both corpora (1:1 map of the intermediate json formats)
|
|
|
|
|
|
|
|
|
|
|
|
### Flask backend (1 container)
|
|
|
|
Input: see Database
|
|
|
|
|
|
|
|
API endpoints:
|
|
|
|
|
|
|
|
* GET word list (pre-cached)
|
|
|
|
* GET reduced frames (pre-cached)
|
|
|
|
* POST senses
|
|
|
|
* User auth logic
|
|
|
|
|
|
|
|
|
|
|
|
### Vue frontend (1 container)
|
|
|
|
|
|
|
|
* ngnix server
|
2019-03-07 08:11:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
## Deployment
|
|
|
|
|
2019-03-07 08:19:56 +00:00
|
|
|
Preflight:
|
2019-03-07 08:11:54 +00:00
|
|
|
* get up DB
|
2019-03-07 08:19:56 +00:00
|
|
|
* prepare DB
|
|
|
|
|
|
|
|
Flight:
|
2019-03-07 08:11:54 +00:00
|
|
|
* start backend
|
2019-03-07 08:19:56 +00:00
|
|
|
* start frontend
|
|
|
|
|