docker-compose up
First of all you need NodeJS
and pnpm
installed on your machine.
Finally to run the project:
- Install all dependencies:
pnpm install
- Run the project:
pnpm run dev
You can follow these steps to add new documents with their annotations.
- Add a document file (
.txt
) and its annotations (.json
) in the_files
directory at the root of the application. For example:
.
└── _files
├── bologna.txt
└── bologna.json
- Include the added files in the javascript object in the
documents.ts
file at the root of the application. Be sure each one of the added documents has a unique id. For example:
export const DOCUMENTS: Record<string, Document> = {
'1': {
id: '1',
title: 'Sentenza strage di Bologna',
content: 'bologna.txt',
annotation: 'bologna.json'
}
}