🚧 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.
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.
Gateway used by the frontend to fake authenticate read access to the atlas platform.
Module to handle routing of API endpoints to the respective business applications. Start this locally, if you want to run the angular UI.
This folder kafka is used to store json files that create topics using kafka-automation
with estaCloudPipeline.
Business service for lines, sublines and timetable field numbers. All of these business objects use the atlas own versioning.
Business service for business organisations. All of these business objects use the atlas own versioning.
Service used by Atlas to send emails.
Service used to implement ATLAS Workflows.
User Administration provides the backend for creating and maintaining role and business organisation assignments for user.
Business service for ServicePoints, TrafficPointElements and LoadingPoints. All of these business objects use the atlas own
versioning.
Business service for PRM (Person with Reduced Mobility) Data. All of these business objects use the atlas own versioning.
Spring Batch Job to import CSV File.
Service to assign SLOIDs centrally for all ATLAS applications.
Libraries used to perform:
- business object versioning according to the documentation See Versioning documentation;
- CSV and ZIP exports. See Export documentation;
- Amazon REST Client operations. See Amazon documentation;
ATLAS Angular App.
To run atlas locally, the following tools are required:
Atlas uses Gradle.
- Build:
./gradlew build - Clean:
./gradlew clean - Clean:
./gradlew check - Build a single service:
./gradlew :line-directory:build. Generally to execute some Gradle task on a specific module use:./gradlew :{module}:{task} - Start app:
./gradlew :{module}:bootRun, e.g../gradlew :line-directory:bootRun
./gradlew :{module}:bootRun --args='--spring.profiles.active=github', e.g.:./gradlew :line-directory:bootRun --args='--spring.profiles.active=github'
./gradlew builddocker-compose up./gradlew :{module}:bootRun --args='--spring.profiles.active=github': run for each service- Change dir to frontend:
cd frontend npm start
- Change dir:
cd frontend - Install dependencies:
npm install - Run atlas:
npm start
For a complete list of available commands, see package.json
- Add GitHub remote in local atlas repo
cd atlas
git remote add github <github-repo-clone-url>
- Checkout PR-Branch
git fetch github
git checkout github/<pr-branch>
- Push PR-Branch to Bitbucket
git push origin <pr-branch>
- Create PR on BitBucket from to master
See Free SMTP Server for Testing
To run atlas locally, the Wiremock image must be started:
docker-compose up wiremock -d
To run atlas locally, the DB images must be started:
docker-compose up -d
# 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!- npm install errors: delete the package-lock.json and re run npm install