diff --git a/README.md b/README.md index 640401e..e3a2ef1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # OGC API kennissessie + Repository ten behoeve van kennisdeling voor het bouwen van een OGC API Features & Processes node app. Dit is geen operationele service. @@ -10,12 +11,16 @@ Dit is geen operationele service. 1. Vanaf de commandline: `node --env-file=.env src/index.js` 2. In Visual Studio Code: er is een [.vscode/launch.json](.vscode/launch.json) bestand meegeleverd, waarmee met een **druk op F5** de server start. - + 3. De server start, maar mogelijk is poort 8080 niet beschikbaar. 1. Wijzig dan in het bestand [`.env`](.env) de regel `PORT=8080` naar een niet-gepriviligeerd, hoger poortnummer, bijv. `PORT=8085`. 4. Open in een webbrower de service op `http://localhost:8080/{ID}/v{APIVERSION}`. - 1. Bijv. als het poortnummer is verhoogd: http://localhost:8085/demoservice/v1/ + 1. Bijv. als het poortnummer is verhoogd: [http://localhost:8085/demoservice/v1/](http://localhost:8085/demoservice/v1/) ## Start the service from Docker Desktop + +1. zorg dat docker desktop en docker compose geinstalleerd zijn. +2. vanaf de commandline: `docker compose up` + On the [wiki](https://github.com/Geonovum/ogc-api-kennissessie/wiki/Starting-the-service-on-Docker-Desktop) diff --git a/compose.yml b/compose.yml index 85181d6..416aec5 100644 --- a/compose.yml +++ b/compose.yml @@ -1,12 +1,12 @@ -version: '3' +# version: '3' services: web: image: okapi build: . - networks: - - backend + # networks: + # - backend ports: - - "80:5454" + - 8080:8080 volumes: - - ./:/home/node/okapi/data + - ./data:/home/node/okapi/data \ No newline at end of file diff --git a/src/views/feature.pug b/src/views/feature.pug index 59081e3..afd0e37 100644 --- a/src/views/feature.pug +++ b/src/views/feature.pug @@ -34,8 +34,8 @@ block header - let pathElement2 = links[4].substring(links[4].lastIndexOf("/") + 1); li.breadcrumb-item.active(aria-current='page') | #{pathElement2} - ul.list-separated.m-0.p-0 - a(href=linkSelf + '?f=json') JSON + ul.list-separated.m-0.p-0 + a(href=linkSelf + '?f=json') JSON block content