Table of Contents
To showcase the power of OSDM the Demo App aims to provide a working app to interesting parties to start implementing their apps and clients. The app covers the complete booking flow, including ancillary services, and supports trains, buses or other means of public transport. The code found here is the second implementation based on the results of the Drei-Länder-Hack 2024. Further development includes the implementation of seat reservations and after-sales
This project was build with:
Utilizing SBB-Components
This is a short guide to setup your own development environment of the OSDM Demo App.
-
To start of clone the Repo:
$ git clone [email protected]:UnionInternationalCheminsdeFer/OSDM.git
-
Install all dependencies of the Demp App:
$ cd demo-app $ npm install
-
Setup enviroment:
$ echo VITE_REQUESTOR_HEADER=osdm_demo_app > .env
You might set a different requestor - giving the sandbox context about the client - if needed.
-
Starting the App:
$ npm run dev
-
Enter Sandbox credentials:
To explore the App, a sandbox with client-id and client-secret is required (entered at the landing page of the app), you can check all available sandboxes here.
Potential next features include:
- Add seat reservations
- Add refund flow
- Add exchange details flow
If you consider contributing to any of these topics of want to request a feature please open an issue.
Distributed under the Apache V2. See the LICENSE file for more information.
TheNewCivilian (xatellite), schlpbch (SBB), zdmx (xatellite), jspetrak (Bileto)