|
1 | 1 | # NeoDash Developer Guide |
2 | 2 | > This guide is a work in progress. it is still under active development. If you have any questions, reach out to [email protected]. |
3 | 3 |
|
| 4 | +This document contains information on the following topics: |
| 5 | +- Running NeoDash |
| 6 | +- Extending NeoDash |
| 7 | +- Contributing |
| 8 | + |
| 9 | + |
4 | 10 | ## Running NeoDash |
| 11 | +> If you let end-users access NeoDash, make sure you let them use a read-only account. |
| 12 | +> Be aware that users can run any Cypher query, so only give access to users you trust. |
| 13 | + |
5 | 14 | There are three options for running NeoDash: |
6 | | - |
| 15 | +- As a graph app (From Neo4j Desktop) |
| 16 | +- As a publicly accessible website |
| 17 | +- As a web-app in your own hosted environment |
| 18 | + |
7 | 19 | #### 1. From Neo4j Desktop |
8 | 20 | If you're using Neo4j Desktop, you can install NeoDash from the [Graph App Gallery](when). |
| 21 | +NeoDash will automatically connect to your active database. |
9 | 22 |
|
10 | | - |
11 | | -#### 2. As a web app (publicly hosted) |
| 23 | +#### 2. Online |
12 | 24 | The latest version of NeoDash will always be available at https://nielsdejong.nl/neodash. |
| 25 | +Your database credentials will only be cached in your browser. |
13 | 26 |
|
14 | | - |
15 | | -#### 3. As a web app in your own hosted environment. |
| 27 | +#### 3. As a web app in your own hosted environment |
16 | 28 | To build the application for running in your own environment, take the following steps: |
17 | 29 |
|
18 | 30 | - clone or download this repository. |
19 | | -- Install `npm` (LINK) |
20 | | -- navigate to the directory of the repository |
21 | | -- run `npm install` to install dependencies |
22 | | -- run `npm run-script build` to build the application |
23 | | -- the app will be built to the `dist` folder. |
24 | | -- start your favourite webserver ( apache or nginx ) to host the dist directory. |
| 31 | +- Install `npm`. |
| 32 | +- navigate to the directory of the repository. |
| 33 | +- run `npm install` to install dependencies. |
| 34 | +- run `npm run-script build` to build the application. The app will be built to the `dist` folder. |
| 35 | +- Use your favourite web server (`apache` or `nginx`) to host the `dist` folder. |
25 | 36 |
|
26 | | -## Extending NeoDash |
27 | | -NeoDash can be extended to support other visualizations and report types. This section will provide some pointers on how to add a new type of report to the application. |
28 | | - |
29 | | -> If you're extending the application, please consider contributing to the repository by creating a [pull request](https://github.com/nielsdejong/neodash/pulls). |
| 37 | +Ensure that the `PUBLIC_URL` environment variable is set to where you are hosting the application. |
30 | 38 |
|
31 | 39 |
|
32 | | -### 1. clone and run the application in development mode |
| 40 | +## Extending NeoDash |
| 41 | +NeoDash can be extended to support other visualizations and report types. |
| 42 | +This section will provide some instructions on how to extend the application to fit your needs. |
33 | 43 |
|
34 | | -## Developer Guide |
| 44 | +### Adding a new report type |
| 45 | +#### 1. Clone and run the application in development mode |
35 | 46 | NeoDash is built with React, and uses the `npm` package manager. |
36 | | -When running NeoDash, ensure that the `PUBLIC_URL` environment variable is set to where you are hosting the application. |
37 | 47 | Dependencies are specified in `package.json`. |
38 | 48 |
|
39 | | -> NeoDash is not intended to be used in a production setting by one or more users. [Get in touch](mailto:[email protected]) if you need help building a production-grade Neo4j front-end. |
40 | | -### Install |
41 | 49 | NeoDash can be installed using npm: |
42 | | -`npm install` |
| 50 | +- `npm install` |
| 51 | + |
43 | 52 | Running the application in development mode: |
44 | | -`npm start` |
| 53 | +- `npm start` |
45 | 54 |
|
46 | | -### Build |
47 | | -Building the application: |
48 | 55 |
|
49 | 56 |
|
| 57 | +#### 2. Adding the new report type |
50 | 58 |
|
| 59 | +#### 3. Making the new type selectable |
51 | 60 |
|
52 | | -### 2. Adding the new report type |
| 61 | +#### 4. Build the application |
53 | 62 |
|
54 | | -### 3. Making the new type selectable |
| 63 | +## Contributing |
| 64 | +If you're extending the application, please consider contributing to the repository by creating a [pull request](https://github.com/nielsdejong/neodash/pulls). |
0 commit comments