Skip to content

FAIR Data Point Client application for browsing the metadata and administration.

License

Notifications You must be signed in to change notification settings

Health-RI/FAIRDataPoint-client

 
 

Repository files navigation

FAIR Data Point Client

Client application for the FAIR Data Point providing an HTML-based user interface for browsing the metadata and administration.

Build Status License

Documentation explains how to install, configure and use the FAIR Data Point.

Development

Install dependencies using:

$ npm install

Local development (no Docker)

  1. Start the FDP server (default http://localhost:8080).
  2. Create public/config.js and set apiURL to the FDP server:
// public/config.js
window.config = {
  apiURL: 'http://localhost:8080',
}
  1. Run the dev server:
$ npm run serve

The client will be available at http://localhost:8081.

Tip: If you run both, the server and the client locally, start the server first, because it needs to run on port 8080. The client will then be automatically started on port 8081.

Compile and hot-reload for development:

$ npm run serve

Compile and minify for production:

$ npm run build

Docker

The nginx container can be configured at runtime using environment variables:

  • API_URL (optional): absolute URL the browser should call for the API (recommended for Docker).
  • FDP_HOST (optional): backend host:port used by nginx proxy inside the container network.
  • FDP_SCHEME (optional): http or https for the proxy (http default).
  • PUBLIC_PATH (optional): base path if serving under a subpath (e.g. /app).
  • REBUILD_STYLES (optional): set to any value to force rebuilding SCSS at container start.

Example: backend is another container on the same network (fdp service):

docker run --rm -p 8081:80 \
  --network fdppv1_default \
  -e FDP_HOST=fdp:8080 \
  -e FDP_SCHEME=http \
  -e API_URL=http://localhost:8081 \
  fdp-client

Example: backend is on host machine:

docker run --rm -p 8081:80 \
  -e FDP_HOST=host.docker.internal:8080 \
  -e FDP_SCHEME=http \
  -e API_URL=http://localhost:8081 \
  fdp-client

If the backend is HTTPS-only, set FDP_SCHEME=https and ensure the API URL is https://....

Run tests or linter:

$ npm run test
$ npm run lint

License

This project is licensed under the MIT License - see the LICENSE file for more details.

About

FAIR Data Point Client application for browsing the metadata and administration.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 69.7%
  • TypeScript 19.5%
  • SCSS 9.1%
  • Shell 0.7%
  • JavaScript 0.5%
  • Dockerfile 0.3%
  • HTML 0.2%