Skip to content

SINTEF-9012/madt-neodash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MADT4BC: Multi-Aspect Digital Twin for Business Continuity

Installation

This software requires the following versions of node and yarn:

node version v20.2.0
yarn version v1.22.19

Install dependencies:

yarn install

Make sure chart.js, react-chartjs-2 and cl-react-graph are installed, if not, use:

yarn add chart.js, react-chartjs-2, cl-react-graph

TODO: Update with docker build command for neodash & databases

To setup environment and run all services, we have two alternatives:

Navigate to the connection/api directory and build container using:

docker build -t api -f Dockerfile-api .

Setup

Launch databases in docker:

docker compose up

Run in another terminal:

yarn run dev

To run services, navigate to the connection/api and run:

docker run -p 4999:4999 -p 5000:5000 -p 5001:5001 -p 5002:5002 -p 5003:5003 -v ${PWD}/temp:/usr/api/temp -v ${PWD}/outputs:/usr/api/outputs -v ${PWD}/downloads:/usr/api/downloads --network=sindit_network -it api

For integration purposes, topology topic in connection/api/kafka_config must be updated with correct UC ID and topic_mapping must map topics to correct UIDs in the knowledge graph.

Accessing Database and Dashboard

Open the minio database in browser: http://localhost:9099. Log in with user name and password (detailed in docker compose file).

Create a user and set the policy to read-write. The access and secret keys need to be updated in the connection/minio_config.ini file, and in statistics/minio_config.ini. Create a bucket and update the bucket name in connection/minio_api.py file. Add the PCAP file to the bucket.

Open the neo4j database in browser: http://localhost:7474. Log in with user name and password (detailed in docker compose file).

Open the dashboard in browser: http://localhost:3000, choose "New Dashboard". Log in with user name and password (detailed in docker compose file).

Create database: If the database is empty, you can load one by opening Neo4j Browser at http://localhost:7474. Copy the content from samples/<latest-date-sample>.cypher and past it into the query box of the Neo4j browser, then execute the query. The name/type of the PCAP file needs to correspond to the endpoint/type properties of the static node.

Load dashboard: To load a dashboard at http://localhost:3000, press load dashboard button in left side panel. Choose "Select from file", and choose a sample dashboard (e.g. samples/dashboard-<latest-date>.json).

User Guide for NeoDash

NeoDash comes with built-in examples of dashboards and reports. For more details on the types of reports and how to customize them, see the User Guide.

Questions / Suggestions

If you have any questions about NeoDash, please reach out to the maintainers:

NeoDash is a free and open-source tool developed by the Neo4j community - not an official Neo4j product. If you have a need for a commercial agreement around training, custom extensions or other services, please contact the Neo4j Professional Services team.

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 84.4%
  • Python 8.9%
  • Cypher 3.3%
  • JavaScript 1.7%
  • CSS 0.6%
  • HTML 0.6%
  • Other 0.5%