A React (Typescript) application using webpack.
git clone https://github.com/Informasjonsforvaltning/concept-catalog cd concept-catalog mvn clean install
git clone https://github.com/Informasjonsforvaltning/concept-catalog-gui cd concept-catalog-gui docker-compose up -d --build
Open browser localhost:8083
SOME_VAR=https://backend npm start
Remember to uncomment section "use staging" in config.js to access endpoints in staging.
npm run build
- https://github.com/microsoft/TypeScript-React-Starter
- https://hackernoon.com/react-with-typescript-and-webpack-654f93f34db6
- docker-compose exec concept-catalog-gui sh
- docker-compose exec concept-catalog-gui sh
docker-compose logs -f concept-catalog-gui
docker-compose down ; docker-compose build concept-catalog-gui ; docker-compose up -d
docker-compose exec concept-catalog-gui sh -c "pm2 restart stop
For changes to take effect you need to delete the concept-client image and restart it. Find image id with: docker image ls Delete image with: docker rmi Run again: docker-compose up -d
curl -H "Content-Type: application/json" -X POST -d ' { "id": "6d770978-34b0-439c-a7cb-adacb3612220000", "status": "utkast", "anbefaltTerm": { "navn": { "nb": "dokumentnummer" } }, "definisjon": "lorem ipsum", "kilde": "Forskrift om tinglysing § 11 tredje ledd og § 16 annet ledd bokstav e). Forskrift 3. november 1995 nr. 875 om tinglysing https://lovdata.no/forskrift/1995-11-03-875", "merknad": "Lorem", "merkelapp": ["Lorem"], "ansvarligVirksomhet": { "uri": "http://data.brreg.no/enhetsregisteret/enhet/910244132", "id": "910244132", "navn": "RAMSUND OG ROGNAN REVISJON", "orgPath": "/ANNET/910244132", "prefLabel": "Brønnøysundregistrene" }, "eksempel": "Eksempel lorem ipsum.", "fagområde": "Dokument", "verdiområde": "Verdiområde lorem ipsum", "kontaktpunkt": {"epost":"informasjonsforvaltning@brreg.no"}, "gyldigFom": "2019-03-30", "forholdTilKilde": "ForholdTilKilde lorem ipsum", "tillattTerm": ["Tillatt term", "Et annet tillatt term"], "frarådetTerm": ["Frarådet term", "Særs frarådet"] }' http://localhost:8200/begreper