17 Commits
Author SHA1 Message Date
bachir 8e441d3b5a readme update 2019-10-14 17:39:14 +02:00
bachir 3479fb6688 client update 2019-10-14 17:37:50 +02:00
bachir 700a01a0d4 updated data and added FullTextIndex basex db 2019-10-14 16:53:05 +02:00
bachir ed21394a25 updated wepapp submodule 2019-10-14 15:17:27 +02:00
bachir 1cf6a4ba1e more client commits, see the client repos 2019-09-27 17:00:57 +02:00
bachir fdf82583fe more client commits, see the client repos 2019-09-27 16:43:03 +02:00
bachir 47ddbe61a5 more client commits, see the client repos 2019-09-27 15:22:53 +02:00
bachir 8bd97b031a more client commits, see the client repos 2019-09-25 17:13:03 +02:00
bachir e125aaf39b more client commits, see the client repos 2019-09-25 16:09:58 +02:00
bachir b4328dca7b new commits on client 2019-09-24 17:45:20 +02:00
bachir cabae621b7 updated readme 2019-09-18 12:13:33 +02:00
bachir 24a6ff60f7 first search results display 2019-09-18 12:07:19 +02:00
bachir 696ce52966 added CORS info in readme 2019-09-17 16:16:30 +02:00
bachir a0324a73ef more api review 2019-08-26 11:03:58 +02:00
bachir 2d291ac4e4 client dev fix 2019-08-21 18:48:32 +02:00
bachir 45b1d544d4 some api access fixed 2019-08-21 11:55:02 +02:00
bachir 85c13ebf5d updated client 2019-08-20 14:39:28 +02:00
6 changed files with 35 additions and 13 deletions
+8
View File
@@ -4,6 +4,14 @@
echo "Creating GDP BaseX db"
basex "db:create('gdp','/srv/basex/src/gdp.tei.xml', (),map {'ftindex': true(),'stemming': true(),'casesens': true(),'diacritics': true(),'language': 'fr','updindex': true(),'autooptimize': true(),'maxlen': 96,'maxcats': 100,'splitsize': 0,'chop': false(),'textindex': true(),'attrindex': true(),'tokenindex': true(), 'xinclude': true()})"
# , 'serializer': 'indent=no'
echo "Creating FullText Index tmp file"
basex "xslt:transform(fn:doc('/srv/basex/src/gdp.tei.xml'), fn:doc('/srv/basex/src/xslt/generateFullTextIndex.xsl'))" > /tmp/gdpFtIndex.xml
echo "Creating FullText Index DB"
basex "db:create('gdpFtIndex', '/tmp/gdpFtIndex.xml', (),map {'ftindex': true(),'stemming': true(),'casesens': true(),'diacritics': true(),'language': 'fr','updindex': true(),'autooptimize': true(),'maxlen': 96,'maxcats': 100,'splitsize': 0,'chop': false(),'textindex': true(),'attrindex': true(),'tokenindex': true(), 'xinclude': true()})"
# , 'serializer': 'indent=no'
# as we override the parent container CMD, we have to launch basexhttp here
echo "Launching basexhttp"
+23 -9
View File
@@ -10,7 +10,7 @@ sudo pacman -S docker docker-compose docker-machine
this will clone this repos (main docker environement) and necessary other source code (synopsx, webapp, xml-tei sources, vuejs client)
```
git clone --recursive -o figli https://figureslibres.io/gogs/bachir/docker-gdp.git
git clone --recursive https://figureslibres.io/gogs/bachir/docker-gdp.git
```
## Docker
@@ -31,25 +31,39 @@ then each time you want to launch the app
sudo docker-compose up -d
```
## DB
<del>connect http://localhost:8984/synopsx/create-project</del>
<del>create a 'gdp' project</del>
<del>connect to http://localhost:8984/synopsx/config</del>
<del>select 'gpd' and click on 'ok'</del>
## API
the api is ready, you can go to http://localhost:8984/gdp/home
## Client
open http://localhost:8988 in your browser
## Vhost or Cross Origins Policy
Cross origin poilicy will block the api requests from client
You'll need to install vhost domain for api and client, like dev.gdp.net and dev.api.gdp.net
Or in firefox install this addon to allow cors addons.mozilla.org/en-US/firefox/addon/cors-everywhere/
## Logs
to follow the webpack compilation process, run
```
sudo docker-compose logs -f
```
## Update
update the code
```
git pull origin master
git pull --recurse-submodules
```
restart the containers
```
docker-compose restart basex
docker-compose restart client
```
or rebuild if data was updated
```
docker-compose up -d --build
```
## Doc
https://github.com/guidesDeParis/webapp/blob/master/install.md
+1 -1
Submodule client updated: 01e4d99537...62bde64b7b
+1 -1
Submodule data updated: 423de0caf0...be38d679b6
+1 -1
Submodule synopsx updated: 558dd832a2...be50808d13
+1 -1
Submodule webapp updated: e6ca72b4a0...a22c918986