mirror of
https://github.com/openTdataCH/ojp-demo-app-src.git
synced 2026-12-04 11:59:13 +00:00
OJP Demo GUI | Read-only mirror of https://github.com/openTdataCH/ojp-demo-app-src — SBB. Issues & pull requests at the source.
- TypeScript 84%
- HTML 14.4%
- SCSS 1.4%
- JavaScript 0.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .github/workflows | ||
| .vscode | ||
| docs | ||
| src | ||
| .browserslistrc | ||
| .editorconfig | ||
| .gitignore | ||
| angular.json | ||
| CHANGELOG.md | ||
| karma.conf.js | ||
| LICENSE.txt | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.spec.json | ||
OJP Demo App
This is the source-code repository used for developing and deploying OJP Demo web-application.
Quick Resources
- https://opentdatach.github.io/ojp-demo-app/ - production URL
- CHANGELOG - deployment changes
- Architecture
- App Features
- Query Params Examples
Install & Development server
Requirements:
Installation steps:
- clone this repo
- install dependencies via npm
npm install
-
copy src/app/config/app-config.ts to
src/app/config/app-config.local.ts -
get an OJP 2.0 (or 1.0) key from https://api-manager.opentransportdata.swiss/
-
replace the key placeholder
# src/app/config/app-config.local.ts
...
// OJP 2.0
'V2-PROD': {
url: 'https://api.opentransportdata.swiss/ojp20',
authToken: 'PLACEHOLDER_REPLACE__PROD',
},
...
- serve local development server
ng serve
- navigate to http://localhost:4200 in the browser
License
The project is released under a MIT license.
Copyright (c) 2021 - 2026 Open Data Platform Mobility Switzerland - opentransportdata.swiss.
