Skip to content

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

License

Notifications You must be signed in to change notification settings

ist-supsi/web-bdms

 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.4%
  • Other 0.6%