https://github.com/entur/ninkasi
Back office admin ui
https://github.com/entur/ninkasi
ror
Last synced: 9 months ago
JSON representation
Back office admin ui
- Host: GitHub
- URL: https://github.com/entur/ninkasi
- Owner: entur
- License: eupl-1.2
- Created: 2016-06-28T12:58:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-04-17T18:08:27.000Z (9 months ago)
- Last Synced: 2025-04-18T08:37:36.291Z (9 months ago)
- Topics: ror
- Language: JavaScript
- Homepage:
- Size: 3.83 MB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 32
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Ninkasi [](https://circleci.com/gh/entur/ninkasi/tree/master)
This is the private admin GUI for managing the data pipeline and inspection of data status
## Run the app
### Dev
```
npm install
npm run start
```
Requires Node.js v18 or newer.
### Production
```
npm install
npm run build
npm start
```
## Configuration
We use convict.js for config. Set environment variables `PROVIDERS_BASE_URL`, `ORGANISATIONS_BASE_URL`, `TIMETABLE_ADMIN_BASE_URL`, `MAP_ADMIN_BASE_URL`, `GEOCODER_ADMIN_BASE_URL`
and `EVENTS_BASE_URL` in order to override default configuration of these
endpoints. E.g.
```
ORGANISATIONS_BASE_URL=http://localhost:16001/services/organisations/ PROVIDERS_BASE_URL=http://localhost:16001/services/providers/ EVENTS_BASE_URL=http://localhost:10001/services/events/ TIMETABLE_ADMIN_BASE_URL=http://localhost:11002/services/timetable_admin/ MAP_ADMIN_BASE_URL=http://localhost:11002/services/map_admin/ GEOCODER_ADMIN_BASE_URL=http://localhost:11002/services/geocodr_admin/ npm start dev
```
Optional environment variable `ENDPOINTBASE` overrides namespace for client including slash. E.g.
```
ENDPOINTBASE=/admin/ninkasi/ ORGANISATIONS_BASE_URL=http://localhost:16001/services/organisations/ PROVIDERS_BASE_URL=http://localhost:16001/services/providers/ EVENTS_BASE_URL=http://localhost:10001/services/events/ TIMETABLE_ADMIN_BASE_URL=http://localhost:11002/services/timetable_admin/ MAP_ADMIN_BASE_URL=http://localhost:11002/services/map_admin/ GEOCODER_ADMIN_BASE_URL=http://localhost:11002/services/geocodr_admin/ npm start dev
```
### Authentication
Uses Keycloak to authenticate user and read JWT, set `auth-server-url`:
```
AUTH_SERVER_URL=https://kc-dev.devstage.entur.io/auth port=9000 ENDPOINTBASE=/admin/ninkasi/ EVENTS_BASE_URL=http://localhost:10001/services/events/ TIMETABLE_ADMIN_BASE_URL=http://localhost:11002/services/timetable_admin/ MAP_ADMIN_BASE_URL=http://localhost:11002/services/map_admin/ GEOCODER_ADMIN_BASE_URL=http://localhost:11002/services/geocodr_admin/ npm start dev
```
***NB*** Use `PORT=8000` or `PORT=9000` for development against `https://kc-dev.devstage.entur.io/auth` since these are whitelisted.