Skip to content

Latest commit

 

History

History
59 lines (36 loc) · 1.36 KB

development.md

File metadata and controls

59 lines (36 loc) · 1.36 KB

Graph Explorer

Install

You need to explicitly install the following software:

Other software will be downloaded automatically by the commands below.

Prepare

Before doing anything, including before importing in an IDE, run

$ npm install

Development

Running the UI

Open two terminals. In the first one, start sbt and, within, continuously build the Scala.js project:

$ sbt
> ~ viewer/fastLinkJS

In the second one, start the Vite development server with

$ npm run dev

Follow the URL presented to you by Vite to open the application.

You can now continuously edit files in the subproject UI, for example the MainJS.scala file, and Vite will automatically reload the page on save.

Production build

Make a production build with

sbt "viewer/fullLinkJS"
$ npm run build

You can then find the built files in the dist/ directory. You will need an HTTP server, such as python3 -m http.server 8000, to open the files, as Vite rewrites <script> tags to prevent cross-origin requests.

License

License

Copyright 2025 Juan Pablo Romero and the graph-explorer contributors.