KDercksen / simplerad-frontend

simplerad frontend React app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simplerad-frontend

To start the frontend:

npm run start

Install necessary packages:

npm i

Configuration

Make sure to put the following environment variables in a file like .env.local:

REACT_APP_API_DOMAIN=http://localhost:8000 # url of backend API
REACT_APP_ENTITIES_ENDPOINT=$REACT_APP_API_DOMAIN/entities/
REACT_APP_SEARCH_ENDPOINT=$REACT_APP_API_DOMAIN/search/
REACT_APP_PREVALENCE_ENDPOINT=$REACT_APP_API_DOMAIN/prevalence/
REACT_APP_SUMMARIZE_ENDPOINT=$REACT_APP_API_DOMAIN/summarize/

In order to add sample reports for ease of e.g. testing, create a json file src/assets/sample_reports.json containing a list of objects with a text field.

For example:

[
  { "text": "Sample report text numero uno" },
  { "text": "Sample report text numero dos" }
]

About

simplerad frontend React app


Languages

Language:JavaScript 93.4%Language:HTML 6.6%