Skip to content

Commit 8660569

Browse files
nielsdejongBennuFireMarius Conjeaud“Bastienbastienhubert
authored
2.2.2 Release (#333)
* Master to dev Release (#259) * TableChart : Auto-hide columns prefixed with __ * Master to dev Release (#259) * Added prettier (config based on neo4j/nx repository) * Added eslint and husky (config based on neo4j/nx repository) * Updated eslint config to be as light as possible with Typescript * Updated all files with prettier and linter, refactored files to avoid errors * Added Eslint check step in Github workflows * Updated all files with prettier and linter after rebase on Develop branch * Squash Security Bumbs (#281) * Bump loader-utils from 2.0.2 to 2.0.4 in /gallery Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.2 to 2.0.4. - [Release notes](https://github.com/webpack/loader-utils/releases) - [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md) - [Commits](webpack/loader-utils@v2.0.2...v2.0.4) --- updated-dependencies: - dependency-name: loader-utils dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * Bump loader-utils from 1.4.0 to 1.4.2 Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.2. - [Release notes](https://github.com/webpack/loader-utils/releases) - [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md) - [Commits](webpack/loader-utils@v1.4.0...v1.4.2) --- updated-dependencies: - dependency-name: loader-utils dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * Update yarn.lock * yarn gallery util 3.2.1 * bump * remove lodash 4.17.15 lock * remove minimatch 3.0.4 lock * remove d3 color lock * remove node.fet color lock * ut * no node fetch * lod * lod2 * ncheck * d3 init Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong <[email protected]> * Bump loader-utils from 2.0.2 to 2.0.4 in /gallery (#264) Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.2 to 2.0.4. - [Release notes](https://github.com/webpack/loader-utils/releases) - [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md) - [Commits](webpack/loader-utils@v2.0.2...v2.0.4) --- updated-dependencies: - dependency-name: loader-utils dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fixes #160 (#269) * Fix : Replace parameter in iFrame URLs (#276) * Fix : Replace parameter in iFrame URLs * Fix wrong merge conflict Co-authored-by: Marius Conjeaud <[email protected]> * Bump loader-utils from 2.0.2 to 2.0.4 in /gallery (#290) * Bump loader-utils from 1.4.0 to 1.4.2 (#265) Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.2. - [Release notes](https://github.com/webpack/loader-utils/releases) - [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md) - [Commits](webpack/loader-utils@v1.4.0...v1.4.2) --- updated-dependencies: - dependency-name: loader-utils dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump loader-utils from 2.0.2 to 2.0.4 in /gallery Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.2 to 2.0.4. - [Release notes](https://github.com/webpack/loader-utils/releases) - [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md) - [Commits](webpack/loader-utils@v2.0.2...v2.0.4) --- updated-dependencies: - dependency-name: loader-utils dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong <[email protected]> * Crash on Boolean options parameter selection (#285) * bug on non string values * Fix merge conflicts * Fix merge conflicts * Fix merge conflicts * Fix merge conflicts * Fix merge conflicts Co-authored-by: Niels de Jong <[email protected]> * Hotfix for Neo4j container issues with 5.3 (#293) * Updated deployment scripts to use minimal build without source maps (#271) * Changed build script to use mimimal (no source map) deployment * Added TODOs based on comments * Changing card image download logic (#273) * feature(): Changing download logic for card download by downloading the entire card instead of just the view. This kind of change adds also the buttons to the downloaded image, that is not ideal. * fix(download report image): added missing ref for card expanded view * Removed package-lock.json Co-authored-by: Alfred Rubin <[email protected]> Co-authored-by: Niels de Jong <[email protected]> * Dynamic Card titles (#270) * change of names * Resolving conflicts * Bug fix * Refactoring * Fixed replacement of params in card headers Co-authored-by: Niels de Jong <[email protected]> * Docs on custom map provider (#282) * Docs on custom map provider * Update docs/modules/ROOT/pages/user-guide/reports/map.adoc Co-authored-by: MariusC <[email protected]> Co-authored-by: MariusC <[email protected]> Co-authored-by: Niels de Jong <[email protected]> * Added release notes, bumped version number * Fixed style issues introduced by 2.2.1 + some of the console warnings in development mode * Some more minor style fixes in modal text * Fixed unclear phrasing in extensions modal * Added wine dashboard to gallery (#298) * Added wine dashboard * Updated wine dashboard in gallery * Added jokes dashboard (#300) * Added citation graph (#306) * Bump json5 from 1.0.1 to 1.0.2 (#302) Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2. - [Release notes](https://github.com/json5/json5/releases) - [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md) - [Commits](json5/json5@v1.0.1...v1.0.2) --- updated-dependencies: - dependency-name: json5 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong <[email protected]> * Bump json5 from 2.2.1 to 2.2.3 in /docs (#303) Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3. - [Release notes](https://github.com/json5/json5/releases) - [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md) - [Commits](json5/json5@v2.2.1...v2.2.3) --- updated-dependencies: - dependency-name: json5 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump json5 from 1.0.1 to 1.0.2 in /gallery (#304) Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2. - [Release notes](https://github.com/json5/json5/releases) - [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md) - [Commits](json5/json5@v1.0.1...v1.0.2) --- updated-dependencies: - dependency-name: json5 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong <[email protected]> * Added assessment gallery * Bump convict from 6.2.3 to 6.2.4 in /docs (#307) Bumps [convict](https://github.com/mozilla/node-convict) from 6.2.3 to 6.2.4. - [Release notes](https://github.com/mozilla/node-convict/releases) - [Changelog](https://github.com/mozilla/node-convict/blob/master/CHANGELOG.md) - [Commits](https://github.com/mozilla/node-convict/commits) --- updated-dependencies: - dependency-name: convict dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niels de Jong <[email protected]> * use link (#295) add a link to the neodash repo * upgrade to @neo4j-cypher/react-codemirror package (#286) * upgrade to neo4j-cypher/react-codemirror package * bump @neo4j-cypher/react-codemirror * remove unused old cypher editor component * fix integration tests (missing className) * bump @neo4j-cypher/react-codemirror * bump @neo4j-cypher/react-codemirror * bump @neo4j-cypher/react-codemirror * bump @neo4j-cypher/react-codemirror to latest add codemirror markdown packages as an experiment * enable switching between cypher/markdown languages * update yarn.lock * fix lint errors * update @neo4j-cypher/react-codemirror to latest (fix line number text height) * Fixed breaking integration tests Co-authored-by: Niels de Jong <[email protected]> * Added step to release pipeline to publish to neo4jlabs/neodash on Docker Hub (#299) * Added new Docker image publish location * Refactoring docs to point to new docker image location * Fixed URL reference for gallery docs * [Feature Request] Refresh button #166 (#277) * [Feature Request] Refresh button #166 * [Feature Request] Refresh button #166 * Added conditional setting of last run timestamp * Added option to turn on/off refreshing/download/fullscreening for each report * enabled refreshing/fullscreening/image download on a per report basis * Moved refresh rate, fullscreening, and screenshots to advanced settings for each report * Disabled database selector for text/markdown reports Co-authored-by: Marius Conjeaud <[email protected]> Co-authored-by: Niels de Jong <[email protected]> * Bump @neo4j-cypher/react-codemirror to pre 18 (#309) * update @neo4j-cypher/react-codemirror for bugfix fixes a bug where syntax highlighting markers weren't being cleared properly * oops use ^ in package version * bump again for pre-release 19 * condensed display for tables #167 (#278) * condensed display for tables #167 * condensed display for tables #167 * #167 Fix half-displayed row in compact table * Fix overflowing row for compact table * Added safe boolean checking for compaction setting Co-authored-by: Marius Conjeaud <[email protected]> Co-authored-by: Niels de Jong <[email protected]> * update editor for minification bugfix (constructor.name) (#311) * Fixed doc page title * Added instructions on deploying a buildt to a webserver * Isoa3, a2 and n3 support (#284) * Isoa3, a2 and n3 support * Changed choropleth polymap source to neodash repository Co-authored-by: Niels de Jong <[email protected]> * Added error boundary for reports (#313) * Added error boundary for reports * Minor correction in README * More small changes to the README * More small changes to the README * Added release notes, bumped version number * Parameter Selector Display option (#274) * Selector display vs value * extra changes . some test changes * Fix typo * FIx on Parameter selec * Minor style fixes --------- Co-authored-by: Niels de Jong <[email protected]> * Feature/style with parameters (#330) * StyleWithParams * Stability fixes for rule-based styling on parameters * Fix for rule-based styling in graph charts --------- Co-authored-by: Niels de Jong <[email protected]> * Feature/rule based styling on top of scheme (#331) * Added utils for chart colors and updated coloring function in PieChart component * on bars * Reuse existing color util instead of new one --------- Co-authored-by: “Bastien <“[email protected]”> Co-authored-by: Niels de Jong <[email protected]> * Refactoring the parameter selector chart and updating MUI component (#301) * Refactoring the parameter selector chart and updating MUI component version * Continued refactoring of parameter selector component * Finished refactoring of parameters. Also fixed the weird bug where values were set incorrectly * updated release notes * Refactoring based on the new parameter display values * Finished refactor and merging of parameter display setting * Updated release notes again * finalized changelog and release notes * Fixed typo in about modal screen --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Harold Agudelo <[email protected]> Co-authored-by: Marius Conjeaud <[email protected]> Co-authored-by: “Bastien <“[email protected]”> Co-authored-by: Bastien Hubert <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Neil Menezes <[email protected]> Co-authored-by: MariusC <[email protected]> Co-authored-by: alfredorubin96 <[email protected]> Co-authored-by: Alfred Rubin <[email protected]> Co-authored-by: ioilmio <[email protected]> Co-authored-by: Jon Harris <[email protected]>
1 parent 08588ff commit 8660569

File tree

81 files changed

+4806
-723
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+4806
-723
lines changed

.github/workflows/master-deployment.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,30 @@ jobs:
5757
# - run: curl ${{ secrets.INDEX_HTML_DEPLOYMENT_URL }} > dist/index.html
5858
# - run: aws s3 rm s3://neodash.graphapp.io/ --recursive && aws s3 sync dist s3://neodash.graphapp.io/ --acl public-read
5959
build-docker:
60+
needs: build-test
61+
runs-on: ubuntu-latest
62+
strategy:
63+
matrix:
64+
node-version: [18.x]
65+
steps:
66+
- name: run Docker
67+
uses: actions/checkout@v2
68+
- run: rm -rf docs
69+
- name: Login to Docker Hub
70+
uses: docker/login-action@v1
71+
with:
72+
username: ${{ secrets.DOCKER_HUB_LABS_USERNAME }}
73+
password: ${{ secrets.DOCKER_HUB_LABS_ACCESS_TOKEN }}
74+
- name: Set up Docker Buildx
75+
uses: docker/setup-buildx-action@v1
76+
- name: Build and push
77+
uses: docker/build-push-action@v2
78+
with:
79+
context: .
80+
file: ./Dockerfile
81+
push: true
82+
tags: ${{ secrets.DOCKER_HUB_LABS_USERNAME }}/neodash:latest,${{ secrets.DOCKER_HUB_LABS_ACCESS_TOKEN }}/neodash:2.2.2
83+
build-docker-legacy:
6084
needs: build-test
6185
runs-on: ubuntu-latest
6286
strategy:
@@ -79,7 +103,7 @@ jobs:
79103
context: .
80104
file: ./Dockerfile
81105
push: true
82-
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/neodash:latest,${{ secrets.DOCKER_HUB_USERNAME }}/neodash:2.2.1
106+
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/neodash:latest,${{ secrets.DOCKER_HUB_USERNAME }}/neodash:2.2.2
83107
# build-npm:
84108
# needs: build-test
85109
# runs-on: ubuntu-latest

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ RUN chown -R nginx:nginx /usr/share/nginx/html/
3838
USER nginx
3939
EXPOSE 5005
4040
HEALTHCHECK cmd curl --fail http://localhost:5005 || exit 1
41-
LABEL version="2.2.1"
41+
LABEL version="2.2.2"

README.md

Lines changed: 42 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,45 +6,71 @@ NeoDash is an open source tool for visualizing your Neo4j data. It lets you grou
66

77
Neodash supports presenting your data as tables, graphs, bar charts, line charts, maps and more. It contains a Cypher editor to directly write the Cypher queries that populate the reports. You can save dashboards to your database, and share them with others.
88

9-
## Running NeoDash
9+
## Try NeoDash
1010
You can run NeoDash in one of three ways:
1111

1212
1. You can install NeoDash into Neo4j Desktop from the [graph app gallery](https://install.graphapp.io). NeoDash will automatically connect to your active database.
1313
2. You can run NeoDash from a web browser by visiting http://neodash.graphapp.io.
1414
3. For on-prem deployments, you can build the application yourself, or pull the latest Docker image from Docker Hub.
1515
```
1616
# Run the application on http://localhost:5005
17-
docker pull nielsdejong/neodash:latest
18-
docker run -it --rm -p 5005:5005 nielsdejong/neodash
17+
docker pull neo4jlabs/neodash:latest
18+
docker run -it --rm -p 5005:5005 neo4jlabs/neodash
1919
```
2020

2121
> Windows users may need to prefix the `docker run` command with `winpty`.
2222
23-
See the [Developer Guide](https://neo4j.com/labs/neodash/2.1/developer-guide/) for more on installing, building, and running the application.
2423

25-
## Coding practices
26-
In order to improve the code quality, we added a Prettier and a Linter to this repository.
2724

28-
### Behavior
29-
While commiting, a pre-commit hook will be executed in order to prettify and run the Linter on your staged files. Linter warnings are currently accepted. The commands executed by this hook can be found in /.lintstagedrc.json.
25+
## Build and Run
26+
This project uses `yarn` to install, run, build prettify and apply linting to the code.
3027

31-
There is also a dedicated linting step in the Github project pipeline in order to catch each potential inconsistency.
28+
To install dependencies:
29+
```
30+
yarn install
31+
```
32+
33+
To run the application in development mode:
34+
```
35+
yarn run dev
36+
```
37+
38+
To build the app for deployment:
39+
```
40+
yarn run build
41+
```
42+
43+
To manually prettify all the project `.ts` and `.tsx` files, run:
44+
```
45+
yarn run format
46+
```
3247

33-
**Don't hesitate to setup your IDE formatting feature to use the Prettier module and our defined rules (.prettierrc.json).**
48+
To manually run linting of all your .ts and .tsx files, run:
49+
```
50+
yarn run lint
51+
```
3452

35-
### Manual execution
36-
If you want to **manually prettify all the project .ts and .tsx files**, you can run `yarn run format`.
53+
To manually run linting of all your .ts and .tsx staged files, run:
54+
```
55+
yarn run lint-staged
56+
```
57+
58+
See the [Developer Guide](https://neo4j.com/labs/neodash/2.2/developer-guide/) for more on installing, building, and running the application.
59+
60+
### Pre-Commit Hook
61+
While commiting, a pre-commit hook will be executed in order to prettify and run the Linter on your staged files. Linter warnings are currently accepted. The commands executed by this hook can be found in /.lintstagedrc.json.
62+
63+
There is also a dedicated linting step in the Github project pipeline in order to catch each potential inconsistency.
3764

38-
If you wan to **manually run linting of all your .ts and .tsx files**, you can run `yarn run lint`.
65+
> Don't hesitate to setup your IDE formatting feature to use the Prettier module and our defined rules (.prettierrc.json).
3966
40-
If you wan to **manually run linting of all your .ts and .tsx staged files**, you can run `yarn run lint-staged`.
4167

4268
## User Guide
4369
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](
44-
https://neo4j.com/labs/neodash/2.1/user-guide/).
70+
https://neo4j.com/labs/neodash/2.2/user-guide/).
4571

4672
## Publish Dashboards
47-
After building a dashboard, you can chose to deploy a read-only, standalone instance for users. See [Publishing](https://neo4j.com/labs/neodash/2.1/user-guide/publishing/) for more on publishing dashboards.
73+
After building a dashboard, you can chose to deploy a read-only, standalone instance for users. See [Publishing](https://neo4j.com/labs/neodash/2.2/user-guide/publishing/) for more on publishing dashboards.
4874

4975

5076
## Questions / Suggestions

changelog.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
## NeoDash 2.2.2
2+
The NeoDash 2.2.2 release is packed with a bunch of new usuability features:
3+
- Changed the built-in Cypher editor to a brand-new [CodeMirror Editor](https://github.com/neo4j-contrib/cypher-editor).
4+
- Rebuilt the **Parameter Select** component from scratch for improved stability, performance and extendability:
5+
- Added an optional setting to the parameter selector to display a different property from the one that is set by the selector.
6+
- Use this to - for example - let users choose a name and set an ID for use by other reports.
7+
- Fields no longer reset randomly when parameters are changed.
8+
- Freetext fields are no longer slow - perform as fast as the other selectors.
9+
- Add the option to use rule-based styling based on dashboard parameters.
10+
- Changed rule-based styling on bar and pie charts to override color scheme instead of clear the scheme.
11+
- Extended the [Example Gallery](https://neodash-gallery.graphapp.io/) with several new demos.
12+
- Adding intermediate report error boundaries for improved app stability.
13+
- Changed docker image name to `neo4jlabs/neodash`.
14+
- Improved documementation for developers.
15+
- Fixed inconsistent styling between different pop-up screens, and fixed report title placeholders.
16+
117
## NeoDash 2.2.1
218
This update provides a number of usability improves over the 2.2.0 release.
319
In addition, it entails various improvements to the codebase, including security patches on the dependencies.

cypress/fixtures/cypher_queries.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cypress/integration/start_page.spec.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ describe('NeoDash E2E Tests', () => {
4747
cy.get('#dbpassword').type('test');
4848
cy.wait(100);
4949
cy.get('button').contains('Connect').click();
50+
cy.wait(100);
5051
});
5152

5253
it('initializes the dashboard', () => {
@@ -130,7 +131,11 @@ describe('NeoDash E2E Tests', () => {
130131

131132
it('creates a single value report', () => {
132133
createReportOfType('Single Value', barChartCypherQuery);
133-
cy.get('main .react-grid-item:eq(2) .MuiCardContent-root > div > div:nth-child(2) > span').contains('1,999');
134+
cy.get('main .react-grid-item:eq(2) .MuiCardContent-root > div > div:nth-child(2) > span')
135+
.invoke('text')
136+
.then((text) => {
137+
expect(text).to.be.oneOf(['1999', '1,999']);
138+
});
134139
});
135140

136141
it('creates a gauge chart report', () => {

docs/antora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: neodash
22
version: 2.2
3-
title: NeoDash Documentation
3+
title: NeoDash
44
start_page: ROOT:index.adoc
55
nav:
66
- modules/ROOT/nav.adoc

docs/modules/ROOT/nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
** xref:user-guide/faq.adoc[FAQ]
3232
* xref:developer-guide/index.adoc[Developer Guide]
3333
** xref:developer-guide/build-and-run.adoc[Build & Run]
34+
** xref:developer-guide/deploy-a-build.adoc[Deploy a Build]
3435
** xref:developer-guide/configuration.adoc[Configuration]
3536
** xref:developer-guide/standalone-mode.adoc[Standalone Mode]
3637
** xref:developer-guide/component-overview.adoc[Component Overview]

docs/modules/ROOT/pages/developer-guide/build-and-run.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ____
1515

1616
To run the application in development mode:
1717

18-
- clone this repository.
18+
- https://github.com/neo4j-labs/neodash[clone this repository.]
1919
- open a terminal and navigate to the directory you just cloned.
2020
- run `yarn install` to install the necessary dependencies.
2121
- run `yarn run dev` to run the app in development mode.
@@ -33,8 +33,8 @@ Pull the latest image from Docker Hub to run the application locally:
3333

3434
....
3535
# Run the application on http://localhost:5005
36-
docker pull nielsdejong/neodash:latest
37-
docker run -it --rm -p 5005:5005 nielsdejong/neodash
36+
docker pull neo4jlabs/neodash:latest
37+
docker run -it --rm -p 5005:5005 neo4jlabs/neodash
3838
....
3939

4040
____
@@ -44,7 +44,7 @@ ____
4444
== Build Docker image
4545

4646
A pre-built Docker image is available
47-
https://hub.docker.com/r/nielsdejong/neodash[on DockerHub]. This image
47+
https://hub.docker.com/r/neo4jlabs/neodash[on DockerHub]. This image
4848
is built using the default configuration (running in editor mode,
4949
without SSO).
5050

@@ -84,7 +84,7 @@ metadata:
8484
spec:
8585
containers:
8686
- name: neodash
87-
image: nielsdejong/neodash:latest
87+
image: neo4jlabs/neodash:latest
8888
ports:
8989
- containerPort: 5005
9090
....
@@ -103,4 +103,4 @@ spec:
103103
targetPort: 5005
104104
selector:
105105
project: neodash
106-
....
106+
....
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
= Deploy a Build
2+
If you have a pre-built NeoDash application, you can easily deploy it on an any webserver.
3+
A NeoDash build is "just" a collection of HTML, CSS and JavaScript files, so it can run virtually anywhere.
4+
5+
This guide walks you through the process of deploying a NeoDash build onto your own webserver.
6+
7+
== 1. Prepare the files
8+
First, check that you have the correct files.
9+
We typically provide builds as either a zip file or tarball with the following naming convention:
10+
`neodash-2.X.X.zip` or `neodash-2.X.X.tar.gz`.
11+
12+
For zip files, open up the terminal and run:
13+
```bash
14+
unzip neodash-2.X.X.zip
15+
```
16+
17+
For tar.gz files, open up the terminal and run:
18+
```bash
19+
tar -xf neodash-2.X.X.tar.gz
20+
```
21+
22+
After running either of these, you should now have a folder `neodash-2.X.X` in the current directory.
23+
24+
== 2. Edit Configuration (Optional)
25+
This is an optional step if you want to configure optional settings for your NeoDash deployment (e.g. SSO or standalone mode).
26+
27+
1. Inside the folder you just unzipped, open up `config.json`.
28+
2. Edit this file to modify your link:../configuration[Configuration] settings.
29+
3. Save the file.
30+
31+
== 3. Move the tarball/zip to your webserver
32+
Finally, copy the files to the correct folder on your webserver.
33+
Depending on the webserver type and version, this could be different directory.
34+
As an example - to copy the files to an nginx webserver using `scp`:
35+
36+
```bash
37+
scp neodash-2.2.2 username@host:/usr/share/nginx/html
38+
```
39+
40+
NeoDash should now be visible by visiting your (sub)domain in the browser.
41+
Can't see the application? Check that the webserver user has read-permissions on the files you copied into the HTML directory.

0 commit comments

Comments
 (0)