Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.1 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.1 KB

Run locally with docker

docker-compose up

Run locally without docker

First of all you need NodeJS and pnpm installed on your machine.

  1. Install NodeJS following this link.

  2. Install pnpm packet manager following this link.

Finally to run the project:

  1. Install all dependencies:
pnpm install
  1. Run the project:
pnpm run dev

Add documents

You can follow these steps to add new documents with their annotations.

  1. 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
  1. 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'
  }
}