Frontend

Frontend Angular application that provides Cytoscape.js and D3.js visualizations of Nexarag knowledge graphs. Also provides graph-building features, Semantic Scholar integration, and LLM talk-to-your-data (TTYD) chat capabilities. The frontend service in the compose stack serves the static Angular files and routes API requests via nginx.

Local Development

First Deployment

  1. Install NVM for your platform (Linux is recommended for local development)
  2. Install NPM
  3. In Nexarag/frontend, run npm install

Running the Development Server

  1. Run the application stack from the root using docker compose. The API will be served at http://localhost:8000
  2. [First-Time Deployment] Install npm dependencies with npm i.
  3. In Nexarag/frontend, run npx nx s. The application will be available (with live reloads) at http://localhost:4200

Running Tests

Unit tests use Jest with jest-preset-angular. From Nexarag/src/frontend:

npx nx test litreview

To run in watch mode during development:

npx nx test litreview --watch