- Java 59.1%
- TypeScript 33.7%
- HTML 6.1%
- SCSS 0.6%
- CSS 0.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .agents | ||
| .github | ||
| .idea | ||
| api-auth-gateway | ||
| atlas-s3 | ||
| auto-rest-doc | ||
| base-atlas | ||
| buildSrc | ||
| bulk-import-service | ||
| business-organisation-directory | ||
| export-service | ||
| frontend | ||
| gateway | ||
| gradle | ||
| kafka | ||
| line-directory | ||
| location | ||
| opengrep-report | ||
| pdf-sanitize | ||
| prm-directory | ||
| scheduling | ||
| service-point-directory | ||
| timetable-hearing | ||
| user-administration | ||
| user-administration-security | ||
| versioning | ||
| wheelchair-accessibility | ||
| workflow | ||
| .gitattributes | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| .semgrepignore | ||
| build.gradle.kts | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| docker-compose.yml | ||
| estaTektonPipeline.json | ||
| ggshield.yaml | ||
| gradle.properties | ||
| gradlew | ||
| gradlew.bat | ||
| init-minio.sh | ||
| LICENSE | ||
| publiccode.yml | ||
| README.md | ||
| renovate.json | ||
| settings.gradle.kts | ||
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:
- business object versioning according to the documentation See Versioning documentation;
- CSV and ZIP exports. See Export documentation;
- Amazon REST Client operations. See Amazon documentation;
Frontend
ATLAS Angular App.
How to
Prerequisite
To run atlas locally, the following tools are required:
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.
- 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
⚠️ Notice to start Spring Boot services use the github profile:
./gradlew :{module}:bootRun --args='--spring.profiles.active=github', e.g.:./gradlew :line-directory:bootRun --args='--spring.profiles.active=github'
Start atlas locally
./gradlew builddocker-compose up./gradlew :{module}:bootRun --args='--spring.profiles.active=github': run for each service- Change dir to frontend:
cd frontend npm start
Start frontend locally
- Change dir:
cd frontend - Install dependencies:
npm install - Run atlas:
npm start
For a complete list of available commands, see package.json
Transfer Pull Request from GitHub to BitBucket
Setup
- Add GitHub remote in local atlas repo
cd atlas
git remote add github <github-repo-clone-url>
Transfer Pull Request
- 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
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
- npm install errors: delete the package-lock.json and re run npm install