This repository contains both the Analysis Backend Server and the Frontend Online Editor.
To set up the project locally, you need to have Node.js installed. Then run the following commands to clone the repository and install the dependencies:
git clone https://github.com/DataFlowAnalysis/OnlineEditor.git
cd OnlineEditor/frontend/webEditor
npm installBy default, the Editor will connect to the remote backend at wss://websocket.dataflowanalysis.org/events/.
To use a local backend, change webSocketAdress in src/features/serialize/webSocketHandler to ws://localhost:3000/events/.
To set up the backend locally, download our product at https://github.com/DataFlowAnalysis/DataFlowAnalysis/releases.
Import the analysisBackendServer and set the target platform in this project's releng folder as the active target platform.
To run the project locally for testing or development, run the following command:
npm run devThis will start a local web server. To visit the page, either open the URL shown in the console or press o in the console.
Simply run main. Established connections are printed on the terminal.
As standard the server will be deployed at localhost:3000/events
To build the project for production run the following command:
npm run buildThis will create a dist folder containing the built static assets. The contents of this folder can be uploaded to a web server to host the project.
To build an executable jar for the backend clone https://github.com/DataFlowAnalysis/AnalysisBackendServerProduct and run mvn clean verify
The jar can be executed by running
eclipse.exe --application org.dataflowanalysis.standalone.application -consoleLog (Windows)
eclipse --application org.dataflowanalysis.standalone.application -consoleLog (Linux/Mac)This project is built using GitHub Actions and the current built version is hosted on GitHub Pages that can be found here.