atlas is the SKI business application for public transport in Switzerland. | Read-only mirror of https://github.com/SchweizerischeBundesbahnen/atlas — SBB. Issues & pull requests at the source.
  • Java 59.1%
  • TypeScript 33.7%
  • HTML 6.1%
  • SCSS 0.6%
  • CSS 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-12-03 15:38:02 +01:00
.agents
.github
.idea
api-auth-gateway atlas 2026-12-03 15:38:02 +01:00
atlas-s3 atlas 2026-12-03 15:38:02 +01:00
auto-rest-doc atlas 2026-12-03 15:38:02 +01:00
base-atlas atlas 2026-12-03 15:38:02 +01:00
buildSrc
bulk-import-service atlas 2026-12-03 15:38:02 +01:00
business-organisation-directory atlas 2026-12-03 15:38:02 +01:00
export-service atlas 2026-12-03 15:38:02 +01:00
frontend [tekton-build-bot] bump npm version 2026-12-02 14:10:28 +01:00
gateway atlas 2026-12-03 15:38:02 +01:00
gradle ATLAS-3645: adapted ersad export 2026-11-30 16:23:58 +01:00
kafka atlas 2026-12-03 15:38:02 +01:00
line-directory atlas 2026-12-03 15:38:02 +01:00
location atlas 2026-12-03 15:38:02 +01:00
mail atlas 2026-12-03 15:38:02 +01:00
opengrep-report atlas 2026-12-03 15:38:02 +01:00
pdf-sanitize atlas 2026-12-03 15:38:02 +01:00
prm-directory atlas 2026-12-03 15:38:02 +01:00
scheduling atlas 2026-12-03 15:38:02 +01:00
service-point-directory atlas 2026-12-03 15:38:02 +01:00
timetable-hearing atlas 2026-12-03 15:38:02 +01:00
user-administration atlas 2026-12-03 15:38:02 +01:00
user-administration-security atlas 2026-12-03 15:38:02 +01:00
versioning atlas 2026-12-03 15:38:02 +01:00
wheelchair-accessibility atlas 2026-12-03 15:38:02 +01:00
workflow atlas 2026-12-03 15:38:02 +01:00
.gitattributes add lf line ending rule to .gitattributes as now all devs are working under unix 2026-10-08 13:36:41 +02:00
.gitignore atlas 2026-12-03 15:38:02 +01:00
.pre-commit-config.yaml
.semgrepignore
build.gradle.kts atlas 2026-12-03 15:38:02 +01:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md
docker-compose.yml ATLAS-3645: use openly accessible minio images 2026-11-30 16:24:08 +01:00
estaTektonPipeline.json atlas 2026-12-03 15:38:02 +01:00
ggshield.yaml
gradle.properties
gradlew
gradlew.bat
init-minio.sh
LICENSE
publiccode.yml
README.md atlas 2026-12-03 15:38:02 +01:00
renovate.json update renovate rules because npm 7 days min release age was overwritten by esta preset and lockFileMaintenance waited indefinitly on stability days status check 2026-11-02 16:47:41 +01:00
settings.gradle.kts atlas 2026-12-03 15:38:02 +01:00

Atlas

🚧 At this point we do not accept opensource contributions or issues. 🚧

ATLAS is the SKI business application for public transport in Switzerland.

It enables modular digitization of SKI business processes, which are checked, optimized, standardized and then digitized using workflows. This enables more efficient collaboration between the BAV, infrastructure operators, transport companies and SKI.

Thanks to the modular structure implemented using state-of-the-art technologies, the platform can be expanded with additional business processes within a short period of time and cost-effectively in the coming years.

Big Picture

ATLAS shall be a platform, on which relevant data for customer information can be managed. Applications on this platform share their tech stack and have the same monitoring and logging.

Api Auth Gateway

Gateway used by the frontend to fake authenticate read access to the atlas platform.

Gateway

Module to handle routing of API endpoints to the respective business applications. Start this locally, if you want to run the angular UI.

Kafka

This folder kafka is used to store json files that create topics using kafka-automation with estaCloudPipeline.

Line-directory

Business service for lines, sublines and timetable field numbers. All of these business objects use the atlas own versioning.

Business-organisation-directory

Business service for business organisations. All of these business objects use the atlas own versioning.

Mail Service

Service used by Atlas to send emails.

Workflow

Service used to implement ATLAS Workflows.

User Administration

User Administration provides the backend for creating and maintaining role and business organisation assignments for user.

Service-Point-Directory

Business service for ServicePoints, TrafficPointElements and LoadingPoints. All of these business objects use the atlas own versioning.

Prm-Directory

Business service for PRM (Person with Reduced Mobility) Data. All of these business objects use the atlas own versioning.

Bulk Import Service

Spring Batch Job to import CSV File.

Location Service

Service to assign SLOIDs centrally for all ATLAS applications.

Base Service lib

Libraries used to perform:

Frontend

ATLAS Angular App.

How to

Prerequisite

To run atlas locally, the following tools are required:

  1. Java JDK 25
  2. Node 24
  3. Docker
  4. docker-compose

Development

⚠️ At this point atlas can be started, but some issues still exist. We are working to resolve the issues as soon as possible. ⚠️

Atlas uses Gradle.

  1. Build: ./gradlew build
  2. Clean: ./gradlew clean
  3. Clean: ./gradlew check
  4. Build a single service: ./gradlew :line-directory:build. Generally to execute some Gradle task on a specific module use: ./gradlew :{module}:{task}
  5. Start app: ./gradlew :{module}:bootRun, e.g. ./gradlew :line-directory:bootRun

⚠️ Notice to start Spring Boot services use the github profile:

  1. ./gradlew :{module}:bootRun --args='--spring.profiles.active=github', e.g.: ./gradlew :line-directory:bootRun --args='--spring.profiles.active=github'

Start atlas locally

  1. ./gradlew build
  2. docker-compose up
  3. ./gradlew :{module}:bootRun --args='--spring.profiles.active=github': run for each service
  4. Change dir to frontend: cd frontend
  5. npm start

Start frontend locally

  1. Change dir: cd frontend
  2. Install dependencies: npm install
  3. Run atlas: npm start

For a complete list of available commands, see package.json

Transfer Pull Request from GitHub to BitBucket

Setup

  1. Add GitHub remote in local atlas repo
cd atlas
git remote add github <github-repo-clone-url>

Transfer Pull Request

  1. Checkout PR-Branch
git fetch github
git checkout github/<pr-branch>
  1. Push PR-Branch to Bitbucket
git push origin <pr-branch>
  1. Create PR on BitBucket from to master

Mocks

SMTP Server

See Free SMTP Server for Testing

Wiremock

To run atlas locally, the Wiremock image must be started: docker-compose up wiremock -d

DB local

To run atlas locally, the DB images must be started:

docker-compose up -d

Sync the forked project with atlas

# Make sure the upstream is set
git remote add upstream https://github.com/SchweizerischeBundesbahnen/atlas.git
# Fetch all commits from upstream
git fetch upstream main
# Create a new branch sync-branch 
git checkout -b sync-branch
# Apply the upstream commits to the branch sync-branch 
git reset --hard upstream/main
# Optional: push the branch sync-branch to origin
git push -u origin sync-branch

# Now you can merge or rebase the sync-branch to your main branch:
# Option 1: Rebase if there are not too many conflicts
# Option 2: Merge if there are too many conflicts

# Option 1: Rebase
git rebase origin main
# Resolve conflicts
# Push to sync-branch
git push -f
# Merge to the main branch or open PR and merge to main
# Done!

# Option 2: Merge
git merge origin/main --allow-unrelated-histories
# Accept the upstream changes
git checkout --theirs .
# Add, commit and push the changes 
git add .
git commit -m "Merge upstream with --allow-unrelated-histories"
git push
# Merge to the main branch or open PR and merge to main
# Done!

Trubleshooting

  1. npm install errors: delete the package-lock.json and re run npm install