Skip to content
SchweizerischeBundesbahnenPublic

About

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

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

3 watching

Forks

Latest commit

 

History

18,452 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Links

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

About

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

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

3 watching

Forks

Used by

Contributors

Languages