Skip to content

AleSteB/React_flow_test

 
 

Repository files navigation

React Flow Schema Viewer

An interactive schema visualizer built with React and React Flow (@xyflow/react). Supports multiple schemas (ChemDCAT, CoreMeta4CAT, DCAT-AP+) with node-based graph editing.

https://hendrikborgelt.github.io/React_flow_test/


Table of Contents


Prerequisites

This project requires Node.js (v18 or later recommended) and npm (included with Node.js).


Installation

Windows

  1. Install Node.js

    Download and run the Windows installer from the official Node.js website:

    https://nodejs.org/en/download
    

    Choose the LTS version. npm is bundled with the installer.

    Verify the installation by opening Command Prompt or PowerShell:

    node --version
    npm --version
  2. Clone the repository

    git clone https://github.com/Hendrik/React_flow_test.git
    cd React_flow_test
  3. Install dependencies

    npm install

macOS

  1. Install Node.js

    Option A — Official installer (recommended for beginners): Download the macOS installer from:

    https://nodejs.org/en/download
    

    Option B — Homebrew (recommended if you already use Homebrew):

    brew install node

    Option C — nvm (recommended if you manage multiple Node versions):

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
    # Restart your terminal, then:
    nvm install --lts
    nvm use --lts

    Verify the installation:

    node --version
    npm --version
  2. Clone the repository

    git clone https://github.com/Hendrik/React_flow_test.git
    cd React_flow_test
  3. Install dependencies

    npm install

Linux

  1. Install Node.js

    Option A — Package manager (Ubuntu/Debian):

    sudo apt update
    sudo apt install nodejs npm

    For an up-to-date LTS version, use the NodeSource repository:

    curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
    sudo apt install -y nodejs

    Option B — Package manager (Fedora/RHEL/CentOS):

    sudo dnf install nodejs npm

    For an up-to-date LTS version via NodeSource:

    curl -fsSL https://rpm.nodesource.com/setup_lts.x | sudo bash -
    sudo dnf install -y nodejs

    Option C — nvm (works on any distro, recommended for flexibility):

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
    # Restart your terminal or run:
    source ~/.bashrc
    nvm install --lts
    nvm use --lts

    Verify the installation:

    node --version
    npm --version
  2. Clone the repository

    git clone https://github.com/Hendrik/React_flow_test.git
    cd React_flow_test
  3. Install dependencies

    npm install

Running the App

Start the development server with the default schema:

npm run dev

Start with a specific schema:

npm run dev:coremeta4cat
npm run dev:dcat-ap-plus

Then open your browser at http://localhost:5173.


Building for Production

Build all schemas:

npm run build:all

Build a single schema (ChemDCAT):

npm run build

Preview the production build locally:

npm run preview

Available Scripts

Script Description
npm run dev Start dev server (default schema)
npm run dev:coremeta4cat Start dev server with CoreMeta4CAT schema
npm run dev:dcat-ap-plus Start dev server with DCAT-AP+ schema
npm run build Build ChemDCAT schema for production
npm run build:all Build all schemas for production
npm run build:app Build the app (no schema target)
npm run preview Preview the production build
npm run lint Run ESLint

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 95.9%
  • JavaScript 2.6%
  • Other 1.5%