Skip to content
Branch: master
Clone or download
Latest commit 6839105 May 23, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docker
src Merge pull request #71 from SchweizerischeBundesbahnen/feature/test04… May 23, 2019
.babelrc Moved frontend from other repository Jan 3, 2018
.gitignore
.jshintrc
Dockerfile Move Dockerfile Apr 3, 2018
LICENSE
README.md
index.html Added a hash in build process to avoid caching in browsers. Feb 9, 2018
package-lock.json
package.json
ssp-frontend-template.json Update openshift template (#23) Jun 19, 2018
webpack.config.js Added a hash in build process to avoid caching in browsers. Feb 9, 2018

README.md

General idea

This is the web UI for https://github.com/SchweizerischeBundesbahnen/ssp-backend. For more information about the project see the readme of the backend.

Installation & Documentation

Self-Service Portal Frontend

# Create a OpenShift project for the frontend
oc new-project ose-selfservice-frontend

# Start the frontend with
oc new-app -p SSP_BACKEND_URL=https://backend-url.com -p WZU_BACKEND_URL=https://wzu-backend-url.com -f ssp-frontend-template.json

Environment variables

Param Description Example
SSP_BACKEND_URL Specify the backend URL of the SSP-Backend https://backend.ssp.com
WZU_BACKEND_URL Optional: Specify the backend URL of the Tools Backend https://tools-backend.ssp.com

Contributing

For debugging purposes you can specify --target builder. Use --build-arg http_proxy= if you are using a proxy.

docker build --target builder -t ssp-frontend -f Dockerfile.multistage .
docker run -it --rm -v $(pwd):/tmp/ssp-frontend -p 8080:8080 ssp-frontend
You can’t perform that action at this time.