Skip to content

Commit 7ad7706

Browse files
authored
Merge pull request #799 from OpenKnowledgeMaps/dev
refactor: better Webpack bundling and PDF links check
2 parents ef91508 + fd68cbc commit 7ad7706

File tree

87 files changed

+7634
-5175
lines changed

Some content is hidden

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

87 files changed

+7634
-5175
lines changed

.gitignore

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ dist/
1010
/config.js
1111
.cache
1212
coverage/
13+
.vscode/
1314

1415
# local deployment files
1516
/deploy.sh
@@ -31,6 +32,7 @@ server/workers/tests/*.txt
3132
server/workers/tests/testutils/
3233
local_dev/renv/*
3334
local_dev/dev.env
35+
local_dev/paper_preview
3436

3537
# php files
3638
/server/classes/headstart/vendor
@@ -55,23 +57,11 @@ server/preprocessing/other-scripts/renv
5557
.pytest_cache
5658
*__pycache__*
5759
.venv
58-
59-
# python files
60-
*.pyc
61-
*.pkl
62-
.ipynb_checkpoints
63-
*.ipynb
64-
/nbproject/private/
65-
/server/nbproject/private/
66-
.pytest_cache
6760
*.egg-info/
68-
*__pycache__*
69-
70-
# Mac files
71-
.DS_Store
7261

7362
# personal
74-
.vscode/settings.json
63+
.vscode/
64+
7565
# temporal
7666
local_dev/config_local_headstart.ini
7767
local_dev/config_local_searchflow.ini

README.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,32 @@ Head Start is a web-based knowledge mapping software intended to give researcher
99
### Client
1010
To get started, clone this repository. Next, duplicate the file `config.example.js` in the root folder and rename it to `config.js`.
1111

12-
Set the `skin` property in the config to one of the following values to use the
12+
Make sure to have installed `node` version >= 14.18.1 and `npm` version >=8.1.1 (best way to install is with [nvm](https://github.com/nvm-sh/nvm), `nvm install 14.18.1`) and run the following command to install the Headstart dependencies:
13+
14+
npm install
15+
16+
We use [webpack](https://webpack.github.io/) to build our client-side application. The development server is based on the `webpack serve` utility, which means that changes to files are tracked and the page is reloaded automatically. Run the local BASE example with the following command:
17+
18+
npm run example:base
19+
20+
The browser will automatically open a new window with the example.
21+
22+
You can run also different examples
23+
24+
- `npm run example:pubmed` will run the PubMed example
25+
- `npm run example:triple` will run the GoTriple example
26+
- `npm run example:viper` will run the Viper example
27+
- `npm run example:covis` will run the CoVis example
28+
29+
If everything has worked out, you should see the example visualization.
30+
31+
To run Headstart on a different server (e.g. Apache), you need to set the publicPath in `config.js` to the URL of the `dist` directory:
32+
* Dev: specify the full path including protocol, e.g. `http://localhost/headstart/dist`
33+
* Production: specify the full path excluding protocol, e.g. `//example.org/headstart/dist`
34+
35+
Then build it with the command `npm run prod`. The build will appear in the _dist/_ folder in the root directory.
36+
37+
You can also set the `skin` property in the config to one of the following values to use the
1338
particular data integration skin:
1439

1540
- `"covis"`
@@ -18,6 +43,14 @@ particular data integration skin:
1843

1944
or leave it empty (`""`) for the default project website skin.
2045

46+
See [client configuration](doc/README.md) for details on adapting the client.
47+
48+
Also see visualization [options](doc/README.md#visualisation-settings).
49+
50+
### Server
51+
52+
See [Installing and configuring the server](doc/server_config.md) for instructions on how to install and configure the server. Also, see [HOWTO: Get the search repos example to work](doc/howto_search_repos.md).
53+
2154
Make sure to have installed `node` version >= 14.18.1 and `npm` version >=8.1.1 (best way to install is with [nvm](https://github.com/nvm-sh/nvm), `nvm install 14.18.1`) and run the following two commands to build the Headstart client:
2255

2356
npm install

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ services:
256256
- ../Headstart:/var/www/html/headstart
257257
- ./local_dev/config_local_headstart.ini:/var/www/html/headstart/server/preprocessing/conf/config_local.ini
258258
- ./local_dev/entrypoint.php:/var/www/html/entrypoint.php
259+
- ./local_dev/paper_preview:/var/www/html/headstart/server/paper_preview
259260
ports:
260261
- 127.0.0.1:8085:80
261262
networks:

examples/local_triple/map.html

Lines changed: 0 additions & 327 deletions
This file was deleted.

examples/local_triple/stream.html

Lines changed: 0 additions & 329 deletions
This file was deleted.

examples/project_website/data-config_pubmed.js

Lines changed: 0 additions & 50 deletions
This file was deleted.

examples/project_website/pubmed.html

Lines changed: 0 additions & 116 deletions
This file was deleted.

0 commit comments

Comments
 (0)