Browse Source

basex dockerfile create db, readme

Bachir Soussi Chiadmi 4 years ago
parent
commit
c5f1469cde
2 changed files with 22 additions and 2 deletions
  1. 3 1
      Docker/basex/Dockerfile
  2. 19 1
      README.md

+ 3 - 1
Docker/basex/Dockerfile

@@ -1,3 +1,5 @@
 FROM basex/basexhttp:latest
 
-# RUN basex db:create("gpd","/srv/basex/src/gdp.tei.xml",(), map{'ftindex':true()})
+# RUN basex run db:create("gdp","/srv/basex/src/gdp.tei.xml")
+
+RUN 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()})"

+ 19 - 1
README.md

@@ -27,12 +27,30 @@ sudo docker-compose up -d
 ```
 
 ## DB
-Only at first up, creat the basex database
+{{/* Only at first up, creat the basex database
 ```
 sudo docker exec -it gdp_basex_1 bash
 basex
 run db:create('gdp','/srv/basex/src/gdp.tei.xml',...)
+``` */}}
+connect http://localhost:8984/synopsx/create-project
+
+create a 'gdp' project
+
+connect to http://localhost:8984/synopsx/config
+select 'gpd' and click on 'ok'
+
+the api is ready, you can go to http://localhost:8984/gdp/home
+
+
+{{/* ## Client
+```
+cd client
+npm install
+npm run dev
 ```
+open http://localhost:8080 in your browser */}}
+
 
 ## Doc