@@ -27,10 +27,8 @@ For the rest of the exemples we assume you cloned the code in a directory called
So the procedure to integrate is basically just to extract the tinawebJS distribution in your `static` directory.
There are two exceptions are:
- the html starting point itself:
- to use it as is:
There are two exceptions are the html page and the companion backends:
- you can adapt paths for the html starting point itself to any url prefix:
1) go into the root directory of projectExplorer in your static dir
```
# with our exemple
...
...
@@ -74,8 +72,28 @@ There are two exceptions are:
- to use it within a different GUI layout: take our html as an exemple and create your own html importing the same libs and exposing the same div ids.
- the directory `twpresets/` contains specific variants of `settings_explorerjs` for some common deployment tasks of the ISCPIF (comex, gargantext)
- optionally, the backends under `twbackends`:
- they are the only server-side elements of the tina distribution
- while part of the distribution, they are **standalone micro-servers**
- they contain their own readme as to how to run them on a server
- once they are configured or run, the communication between them and the main tinaweb client module happens via XHR requests: therefore they can actually reside in any convenient place for your deployment.
- optionally, to deploy the backends under `twbackends`:
1) they are the only server-side elements of the tina distribution. While part of the distribution, they are **standalone micro-servers**.
2) they contain their own documentation as to how to run them on a webserver
- for the twitter backend setup, you should follow [this section of the twitterAPI readme](https://github.com/moma/ProjectExplorer/blob/master/twbackends/twitterAPI2/README.md#on-a-real-server)
- for the CSV/CortextDB backend, the easiest is to serve the php files as an additional location of your static server, as explained in the [this section of the PHP backend's readme](https://github.com/moma/ProjectExplorer/blob/master/twbackends/phpAPI/README.md#prerequisites)
3) once they are running, the communication between them and the main tinaweb client module happens via XHR requests: therefore they can actually reside in any convenient place for your deployment. You just need to set the http paths accordingly in the `relatedDocsAPIS` entry of ProjectExplorer's settings. For instance, with the locations suggested in the documentation above, the configuration in `settings_explorerjs.js` would be like this:
4) finally, to use these backends as related documents search engines for a given graph, you'll need to configure your `db.json` file [as explained here](https://github.com/moma/ProjectExplorer/blob/master/00.DOCUMENTATION/A-Introduction/servermenu_config.md#more-relateddocs-settings). You can also find real-life examples in this distribution's `db.json` file.