|
19 | 19 | - [Validate Links in Markdown](#validate-links-in-markdown) |
20 | 20 | - [Manual Setup](#manual-setup) |
21 | 21 | - [Setup Neo4j Graph Database](#setup-neo4j-graph-database) |
| 22 | + - [Change Neo4j configuration template](#change-neo4j-configuration-template) |
22 | 23 | - [Start Neo4j Graph Database](#start-neo4j-graph-database) |
23 | 24 | - [Setup jQAssistant Java Code Analyzer](#setup-jqassistant-java-code-analyzer) |
24 | 25 | - [Download Maven Artifacts to analyze](#download-maven-artifacts-to-analyze) |
|
51 | 52 |
|
52 | 53 | ## Start an Analysis |
53 | 54 |
|
54 | | -An analysis is started with the script [analyze.sh](./scripts/analysis/analyze.sh). |
| 55 | +Before starting an analysis, setup your analysis as described in the [Getting Started](./GETTING_STARTED.md) guide. |
| 56 | +An analysis is then started with the script [analyze.sh](./scripts/analysis/analyze.sh). |
55 | 57 | To run all analysis steps simple execute the following command: |
56 | 58 |
|
57 | 59 | ```shell |
58 | 60 | ./../../scripts/analysis/analyze.sh |
59 | 61 | ``` |
60 | 62 |
|
| 63 | +**Hint:** Within the analysis workspace directory you can simply run `analyze.sh` directly without the `../../` prefix since the script is also available in the analysis workspace. |
| 64 | + |
61 | 65 | 👉 See [scripts/examples/analyzeAxonFramework.sh](./scripts/examples/analyzeAxonFramework.sh) as an example script that combines all the above steps for a Java Project. |
62 | 66 | 👉 See [scripts/examples/analyzeReactRouter.sh](./scripts/examples/analyzeReactRouter.sh) as an example script that combines all the above steps for a Typescript Project. |
63 | 67 | 👉 See [Code Structure Analysis Pipeline](./.github/workflows/internal-java-code-analysis.yml) on how to do this within a GitHub Actions Workflow. |
@@ -183,11 +187,23 @@ If any of the script are not allowed to be executed use `chmod +x ./scripts/` fo |
183 | 187 | Use [setupNeo4j.sh](./scripts/setupNeo4j.sh) to download [Neo4j](https://neo4j.com/download-center) and install the plugins [APOC](https://neo4j.com/labs/apoc/4.4) and [Graph Data Science](https://neo4j.com/product/graph-data-science). |
184 | 188 | This script requires the environment variable NEO4J_INITIAL_PASSWORD to be set. It sets the initial password with a temporary `NEO4J_HOME` environment variable to not interfere with a possibly globally installed Neo4j installation. |
185 | 189 |
|
| 190 | +### Change Neo4j configuration template |
| 191 | + |
| 192 | +Use [configureNeo4j.sh](./scripts/configureNeo4j.sh) to apply a different Neo4j configuration template from the [scripts/configuration](./scripts/configuration/) directory. This can be useful to optimize Neo4j for different workloads. Example: |
| 193 | + |
| 194 | +```shell |
| 195 | +NEO4J_CONFIG_TEMPLATE=template-neo4j-high-memory.conf ./scripts/configureNeo4j.sh |
| 196 | +``` |
| 197 | + |
| 198 | +**Hint:** In case you want to switch to the high memory profile as in the example, there is a simpler solution. Just run `useNeo4jHighMemoryProfile.sh` from the analysis workspace directory which will set the environment variable `NEO4J_CONFIG_TEMPLATE` and run `configureNeo4j.sh` for you. |
| 199 | + |
186 | 200 | ### Start Neo4j Graph Database |
187 | 201 |
|
188 | 202 | Use [startNeo4j.sh](./scripts/startNeo4j.sh) to start the locally installed [Neo4j](https://neo4j.com/download-center) Graph database. |
189 | 203 | It runs the script with a temporary `NEO4J_HOME` environment variable to not interfere with a possibly globally installed Neo4j installation. |
190 | 204 |
|
| 205 | +**Hint:** Within the analysis workspace directory you can simply run `startNeo4j.sh` directly without the `../../` prefix since the script is also available in the analysis workspace. |
| 206 | + |
191 | 207 | ### Setup jQAssistant Java Code Analyzer |
192 | 208 |
|
193 | 209 | Use [setupJQAssistant.sh](./scripts/setupJQAssistant.sh) to download [jQAssistant](https://jqassistant.github.io/jqassistant/current). |
@@ -346,6 +362,8 @@ execute_cypher ./cypher/Get_Graph_Data_Science_Library_Version.cypher a=1 |
346 | 362 |
|
347 | 363 | Use [stopNeo4j.sh](./scripts/stopNeo4j.sh) to stop the locally running Neo4j Graph Database. It does nothing if the database is already stopped. It runs the script with a temporary `NEO4J_HOME` environment variable to not interfere with a possibly globally installed Neo4j installation. |
348 | 364 |
|
| 365 | +**Hint:** Within the analysis workspace directory you can run `stopNeo4j.sh` directly without the `../../` prefix since the script is also directly available in the analysis workspace. |
| 366 | + |
349 | 367 | ## Jupyter Notebook |
350 | 368 |
|
351 | 369 | ### Create a report with executeJupyterNotebookReport.sh |
|
0 commit comments