ist-supsi / web-bdms

The official swissforages.ch web interface implementing the Federal Borehole Data Model of Switzerland.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Borhole Management System Frontend

Install nodejs and npm

sudo apt install nodejs npm

Install dependencies

npm install

or

yarn install

Build App

yarn build

or

npm run build

Developer corner

npm start

App served on a subpath url

To specify the path from where the app is served (https://example.com/bdms) you can specify the environment variable as follows:

PUBLIC_URL=/bdms npm run build

Build docker image from source

Clone server repository, and run the build command.

git clone https://github.com/geoadmin/web-bdms.git
cd service-bdms
version=$(cat ./VERSION.txt)
DOCKER_BUILDKIT=1 \
    docker build -t swisstopo/service-bdms-nginx:$version .

If you are preparing a beta just change the version:

version=$(cat ./VERSION.txt)-beta.$(date +%Y%m%d)
username=geoadmin
DOCKER_BUILDKIT=1 \
    docker build \
      -t ghcr.io/$username/web-bdms/service-bdms-nginx:$version .
docker push ghcr.io/$username/web-bdms/service-bdms-nginx:$version

Stable release:

version=$(cat ./VERSION.txt)
DOCKER_BUILDKIT=1 \
    docker build \
      -t swisstopo/service-bdms-nginx:$version .
docker push swisstopo/service-bdms-nginx:$version

Build app served on a subpath url

To specify the path from where the app is served (https://example.com/bdms) you can specify the environment variable as follows:

git clone https://github.com/geoadmin/web-bdms.git
cd service-bdms
version=$(cat ./VERSION.txt)
docker build -e PUBLIC_URL=/subpath -t swisstopo/service-bdms-nginx:$version .

Run Docker container:

sudo docker run -d \
  --name service-bdms-nginx \
  swisstopo/service-bdms-nginx:x.x.x

About

The official swissforages.ch web interface implementing the Federal Borehole Data Model of Switzerland.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:JavaScript 99.4%Language:CSS 0.4%Language:HTML 0.1%Language:Dockerfile 0.1%