Skip to content

WoodenMaiden/RelfinderReformedFront

Repository files navigation

RelfinderReformed frontend

What is this ?

Relfinder is an implementation of the now deprecated relfinder. Paired with an API it will show the relations between rdf entities.

Env variables

Name Required - default value Description
RFR_API_URL ❌ - "" (targets the same host useful when serving it from the API) URL to a RelfinderReformed API

Run locally with npm

npm run start
# if you want to change the api url with an env variable prefix it with ``REACT_APP_``
# React does that for security reasons
REACT_APP_RFR_API_URL=http://some_url_to_an_api.com npm run start

Build and run the project

Manually

vim src/variables.js
#Edit each of the values according to the table above

npm i
npm i -g serve
npm run build

serve -s build

With docker

docker build . -t rfrfront
docker run -e RFR_API_URL=http://someurltoanapi.com rfrfront