- the main templates are `base_layout.html` and `rootindex.html`
- main and `services/user.py` handle DB add/modify/remove scholars
-`services/db_to_tina_api` contains a custom python extraction function for tinawebJS
-`services/dbdatapi.py` contains a facet agregation API and custom python extraction function to create bipartite graphs for tinawebJS display
- a copy of tinawebJS in `static/tinawebJS` to explore the data in graph view
- the twjs is in a legacy version, downloadable [via this subtree](https://github.com/moma/tinawebJS/tree/comex_wip)
...
...
@@ -19,9 +19,9 @@ comex app contains:
In development, it is more natural to run the app *without* the docker wrapper.
This way one can see the effects of changes without the bother of committing them, pulling them in the image and rebuilding the image.
Another difference is that without the docker wrapper, the app will be available on COMEX_HOST:9090 instead of 8080.
Another difference is that without the docker wrapper, the app will be available on 0.0.0.0:9090 instead of 8080.
#### Minimal config
#### Minimal run commands
```
# get the code
...
...
@@ -33,24 +33,37 @@ cd $INSTALL_DIR
sudo pip3 install -r setup/requirements.txt
```
Then to run the comex2 server just do:
Then to run the comex2 server for development just do:
```
bash comex-run.sh
bash comex-run.sh -d
```
Check the parameters in `config/parametres_comex.ini`
Finally, simply configure the serving of your php|www documentroot in nginx (cf [detailed doc](https://github.com/moma/comex2/blob/master/doc/nginx_conf.md) for real-life conf).
At this point you're running a python gunicorn webserver pointing to the files in `/services`. You can connect to `0.0.0.0:9090` and checkout the app, but you won't have the php, DB access and authentication elements working yet.
-------
#### Full dev config
1. external mysql database
2. external doors (or simulated by docker)
3. gunicorn webserver (linked to 1 & 2 via `$SQL_HOST` and `$DOORS_HOST`)
1. php serving
2. mysql database
3. doors authentication server
4. gunicorn webserver (linked to 1 & 2 via `$SQL_HOST` and `$DOORS_HOST`)
##### 1) Set up your php
Configure the serving of our php documents in your nginx with something like this:
```
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
# here adapt documentroot to your real path to comex
Again, the environment variable `DOORS_HOST` must simply be set to the doors server's hostname or IP, and `DOORS_PORT` to the doors server's exposed port.