Skip to content

Commit 648791e

Browse files
committed
Updated developer guide
1 parent c9a4aa0 commit 648791e

File tree

1 file changed

+36
-26
lines changed

1 file changed

+36
-26
lines changed

doc/developer-guide.md

Lines changed: 36 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,64 @@
11
# NeoDash Developer Guide
22
> This guide is a work in progress. it is still under active development. If you have any questions, reach out to [email protected].
33
4+
This document contains information on the following topics:
5+
- Running NeoDash
6+
- Extending NeoDash
7+
- Contributing
8+
9+
410
## 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+
514
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+
719
#### 1. From Neo4j Desktop
820
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.
922

10-
11-
#### 2. As a web app (publicly hosted)
23+
#### 2. Online
1224
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.
1326

14-
15-
#### 3. As a web app in your own hosted environment.
27+
#### 3. As a web app in your own hosted environment
1628
To build the application for running in your own environment, take the following steps:
1729

1830
- 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.
2536

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.
3038

3139

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.
3343

34-
## Developer Guide
44+
### Adding a new report type
45+
#### 1. Clone and run the application in development mode
3546
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.
3747
Dependencies are specified in `package.json`.
3848

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
4149
NeoDash can be installed using npm:
42-
`npm install`
50+
- `npm install`
51+
4352
Running the application in development mode:
44-
`npm start`
53+
- `npm start`
4554

46-
### Build
47-
Building the application:
4855

4956

57+
#### 2. Adding the new report type
5058

59+
#### 3. Making the new type selectable
5160

52-
### 2. Adding the new report type
61+
#### 4. Build the application
5362

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

Comments
 (0)