{"id":21291501,"url":"https://github.com/postfinance/swiss-hacks","last_synced_at":"2025-07-11T16:30:32.791Z","repository":{"id":246583275,"uuid":"821550259","full_name":"postfinance/swiss-hacks","owner":"postfinance","description":"Challenge Source Code for the Swiss Hacks - 28. bis 30. Juni 2024 ","archived":false,"fork":false,"pushed_at":"2024-07-08T08:08:42.000Z","size":198,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-07-08T10:14:26.029Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/postfinance.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-28T19:56:04.000Z","updated_at":"2024-07-08T08:08:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"2aba0d01-2d9b-46e6-a593-860e6ab2556d","html_url":"https://github.com/postfinance/swiss-hacks","commit_stats":null,"previous_names":["postfinance/swiss-hacks"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postfinance%2Fswiss-hacks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postfinance%2Fswiss-hacks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postfinance%2Fswiss-hacks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postfinance%2Fswiss-hacks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postfinance","download_url":"https://codeload.github.com/postfinance/swiss-hacks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225737850,"owners_count":17516441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T13:33:58.031Z","updated_at":"2024-11-21T13:33:58.781Z","avatar_url":"https://github.com/postfinance.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swiss Hacks 2024\n\nThis project uses Quarkus, the Supersonic Subatomic Java Framework. Java 21 or above is required for building and\nrunning.\n\n**Learn more about Quarkus:** https://quarkus.io.\n\nWe've published a container image for easy local execution (replace `podman`\nfor [`docker` for Windows](https://docs.docker.com/desktop/install/windows-install)):\n\n```shell\npodman run ghcr.io/postfinance/swiss-hacks-2024:latest\n```\n\nSee available versions [here](https://github.com/postfinance/swiss-hacks/tags).\n\n**Pre-created Login Credentials**\n\nFor your convenience, we've pre-created login credentials with some sample accounts and transactions:\n\n| Username    | Password          | Role  |\n|-------------|-------------------|-------|\n| john.doe    | strong-password   | User  |\n| jane.smith  | you-dont-guess-me | User  |\n| jimmy.allen | secure-secret     | Admin |\n\n## The Challenge\n\nWe challenge you to leverage Generative AI and transform the way APIs are tested in the banking sector. Imagine\ninnovative GenAI applications for end-to-end testing that utilize our provided resources:\n\n* Precise standards: [./src/main/resources/openapi/openapi.yml](./src/main/resources/openapi/openapi.yml)\n* Use case definitions: [./spec/Requirements.md](./spec/Requirements.md)\n\nThe goal is to develop AI that intelligently suggests improvements during the development/building/testing phase (any or\nmultiple).\n\nThe [criteria by which we will measure success](./spec/Criteria.md) is documented as well.\n\n## Local Development\n\n1. Clone this repository:\n\n```shell\ngit clone git@github.com:postfinance/swiss-hacks.git\n```\n\n2. Navigate to the project directory:\n\n```shell\ncd swiss-hacks\n```\n\n3. Build the application using Maven:\n\n```shell\n./mvnw package\n```\n\n### IDE Integration\n\nFor IntelliJ IDEA Community Edition, install the Quarkus Tools plugin from the\nmarketplace: https://plugins.jetbrains.com/plugin/13234-quarkus-tools.\n\n### Running the Application\n\n#### Dev Mode (Live Coding):\n\n* Within your IDE or using:\n\n```shell script\n./mvnw compile quarkus:dev\n```\n\n* Access the Dev UI at http://localhost:8080/q/dev (available only in dev mode).\n\n#### Packaged Application:\n\n1. Package the application:\n\n```shell script\n./mvnw package\n```\n\n2. This creates `quarkus-run.jar` in `target/quarkus-app/`.\n\n3. Run the application:\n\n```shell\njava -jar target/quarkus-app/quarkus-run.jar\n```\n\n#### Creating a Native Executable\n\n1. Build the native executable:\n\n```shell script\n./mvnw package -Dnative\n```\n\n2. Alternatively, build it in a container if GraalVM is not installed:\n\n```shell script\n./mvnw package -Dnative -Dquarkus.native.container-build=true\n```\n\n3. Run the native executable:\n\n```shell\n./target/swiss-hacks-2024-*-runner\n```\n\nIf you want to learn more about building native executables, please\nconsult https://quarkus.io/guides/maven-tooling.\n\n### OpenAI\n\nFor access to [OpenAI Platform](https://openai.com/api/), please ask the mentors to receive a token. You're free to use\nany other language model on your on behalf.\n\n**Example using Python:**\n\n```python \nfrom openai import OpenAI\nclient = OpenAI(api_key=\"\u003cYOUR_TOKEN\u003e\")\n\nresponse = client.chat.completions.create(\n  model=\"gpt-4-turbo\",\n  messages=[\n    {\"role\": \"system\", \"content\": \"You are a helpful assistant.\"},\n    {\"role\": \"user\", \"content\": \"Who won the world series in 2020?\"},\n    {\"role\": \"assistant\", \"content\": \"The Los Angeles Dodgers won the World Series in 2020.\"},\n    {\"role\": \"user\", \"content\": \"Where was it played?\"}\n  ]\n)\n```\n\n### FAQ\n\n// TBD\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostfinance%2Fswiss-hacks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostfinance%2Fswiss-hacks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostfinance%2Fswiss-hacks/lists"}