We recommend using docker for local dev environment.
cd docker
docker compose -p letterbox up
Add the dataset txt files into docker/project/data/messages/
.
Add tags csv files into docker/project/data/tags/
.
Tags must be named from entities type and contain tow columns: name
and tags
.
tags
must be separated by a |
separator.
cat docker/project/data/tags/person.csv
name,tags
Joe Itch,lawyer|notary
Run import/index script
cd code/server
npm run dataset:import
This script does import in Neo4J and index into Elaticsearch
cd code/server
npm run init
See docker/.env for configuration details.
Web application is served at http://localhost. The Graphql API is served at http://localhost:4000. The Apollo web admin is served at http://localhost/graphql.
If you change the GraphQL schema on the server, you need to update the types on client side by running:
cd code/client
npm run generate