You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: GETTING_STARTED.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ This document describes the steps to get started as quickly as possible.
6
6
7
7
## 🛠 Prerequisites
8
8
9
-
Please read through the [Prerequisites](./README.md#hammer_and_wrench-prerequisites) in the [README](./README.md) file for what is required to run the scripts.
9
+
Please read through the [Prerequisites](./README.md#hammer_and_wrench-prerequisites) in the [README](./README.md) file for what is required to run the scripts or simply run the [checkCompatibility.sh](./scripts/checkCompatibility.sh) script to verify that your environment is set up correctly.
10
10
11
11
## The easiest way to get started
12
12
@@ -40,8 +40,6 @@ Use these optional command line options as needed:
40
40
41
41
### 1. Setup
42
42
43
-
- Have a look at the [prerequisites](./README.md#hammer_and_wrench-prerequisites).
44
-
45
43
- Choose an initial password for Neo4j if not already done.
46
44
47
45
```shell
@@ -96,12 +94,18 @@ Use these optional command line options as needed:
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,6 +85,8 @@ Here are some fully automated graph visualizations utilizing [GraphViz](https://
85
85
86
86
## :hammer_and_wrench: Prerequisites
87
87
88
+
Run [scripts/checkCompatibility.sh](./scripts/checkCompatibility.sh) to check if all required dependencies are installed and available in your environment.
89
+
88
90
- Java 21 is [required since Neo4j 2025.01](https://neo4j.com/docs/operations-manual/current/installation/requirements/#deployment-requirements-java). See also [Changes from Neo4j 5 to 2025.x](https://neo4j.com/docs/upgrade-migration-guide/current/version-2025/upgrade).
89
91
- Java 17 is [required for Neo4j 5](https://neo4j.com/docs/operations-manual/current/installation/requirements/#deployment-requirements-java).
90
92
- On Windows it is recommended to use the git bash provided by [git for windows](https://github.com/git-guides/install-git#install-git-on-windows).
fail "Please specify the name of the project you want to analyze.""Example: ${0} my-project"
39
+
fi
40
+
if [ -d"./temp/${analysisName}" ];then
41
+
fail "Analysis project '${analysisName}' already exists in './temp/${analysisName}' directory.""Choose another name or delete it using 'rm -rf ./temp/${analysisName}' first and re-run the script."
19
42
fi
20
43
21
-
nameOfThisScript=$(basename "${0}")
22
-
if [ !-f"./${nameOfThisScript}" ];then
23
-
echo"init: Error: Please execute the script in the root directory of the code-graph-analysis-pipeline repository.">&2
24
-
echo"init: Change to the directory of this ${nameOfThisScript} script and execute it from there.">&2
25
-
exit 1
44
+
# Validate the execution directory
45
+
if [ !-f"./${SCRIPT_NAME}" ];then
46
+
fail "Please re-execute the script in the root directory of the repository.""Use 'cd <path-to-repo>' and re-run the script."
26
47
fi
27
48
28
-
#Check if initial password environment variable is set
49
+
#Assure that the environment variable containing the Neo4j password is set
29
50
if [ -z"${NEO4J_INITIAL_PASSWORD}" ];then
30
-
echo"init: Error: Environment variable NEO4J_INITIAL_PASSWORD is recommended to be set first. Use 'export NEO4J_INITIAL_PASSWORD=<your-own-password>'."
31
-
exit 1
51
+
fail "Please set NEO4J_INITIAL_PASSWORD before running this script to avoid Neo4j startup issues later.""Use 'export NEO4J_INITIAL_PASSWORD=<your-own-password>' and re-run the script."
echo"${SCRIPT_NAME}: Using latest version: ${projectVersion}">&2
41
46
fi
42
47
43
48
# Check if environment variable is set
44
49
if [ -z"${NEO4J_INITIAL_PASSWORD}" ];then
45
-
echo"analyzerAntDesign: Error: Requires environment variable NEO4J_INITIAL_PASSWORD to be set first. Use 'export NEO4J_INITIAL_PASSWORD=<your-own-password>'."
50
+
echo"${SCRIPT_NAME}: Error: Requires environment variable NEO4J_INITIAL_PASSWORD to be set first. Use 'export NEO4J_INITIAL_PASSWORD=<your-own-password>'."
46
51
exit 1
47
52
fi
48
53
49
-
# Create the temporary directory for all analysis projects.
50
-
mkdir -p ./temp
51
-
cd ./temp
52
-
53
-
# Create the working directory for this specific analysis.
54
-
mkdir -p "./ant-design-${projectVersion}"
55
-
cd"./ant-design-${projectVersion}"
56
-
57
-
# Create the artifacts directory that will contain the code to be analyzed.
0 commit comments