Structured Vetting Environment
This repository consists of an API project and a UI project. Both projects are based on NodeJS. The API project uses a Postgres database (ERD) to store data and the UI project contains React components to render the user interface.
Planning
Wireframes can be found at: https://balsamiq.cloud/s7b9f6j/p61vxqh/r47FB
Some initial thoughts and related documents can be found at:
- Reconciliation API Wiki
- Survey of available vetting entity linking tools
- Reconciliation API - Planning
- Vetting Interface Planning
Running Locally
Docker and git must first be installed on your machine.
git clone https://gitlab.com/calincs/conversion/structured-vetting-environment.git
cd structured-vetting-environment
docker-compose build
docker-compose up
The Postgres database will be persisted in a docker volume. The app will be available at http://localhost:3000/.
Developing Locally
git, npm, postgresql must be installed in your system.
git clone https://gitlab.com/calincs/conversion/structured-vetting-environment.git
Install node_modules for both API / UI
cd versd-api
npm install
cd versd-ui
npm install
Build projects (both have hot reload enabled)
cd versd-api
npm run dev
cd versd-ui
npm start
Using the Service
You will need to have a Keycloak login in the appropriate environment. If developing locally, dev, otherwise staging/production.
To submit a job, navigate to the Submit
page. There are a few options for how to format your data:
- JSON data within the
Data
field
[
{
"unique_id": "TPatT_MODS_85.xml",
"Wtitle1": "slash",
"Wtitle2": "",
"Wtitle3": "",
"aTitle1": "armstrong jeannette",
"aTitle2": "jeannette armstrong",
"aTitle3": "",
"bDay": 1948,
"dDay": ""
},
{
"unique_id": "TPatT_MODS_441.xml",
"Wtitle1": "indian school days",
"Wtitle2": "",
"Wtitle3": "",
"aTitle1": "basil johnston",
"aTitle2": "johnston basil",
"aTitle3": "",
"bDay": "",
"dDay": ""
}
]
- Or a file uploaded with the
Upload File
field. Examples of the acceptable formats are available in theversd-api/sample_data
directory.
Details for the permitted fields for each of the authorities are outlined here.