{"id":18823525,"url":"https://github.com/ocp-devspaces-gamification/ds-challenge-05","last_synced_at":"2026-01-24T06:41:25.560Z","repository":{"id":270291339,"uuid":"870390915","full_name":"ocp-devspaces-gamification/ds-challenge-05","owner":"ocp-devspaces-gamification","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-12T19:47:49.000Z","size":457,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-22T11:17:07.400Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/ocp-devspaces-gamification.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-10-10T00:36:22.000Z","updated_at":"2024-12-22T23:46:35.000Z","dependencies_parsed_at":"2024-12-30T04:33:01.225Z","dependency_job_id":null,"html_url":"https://github.com/ocp-devspaces-gamification/ds-challenge-05","commit_stats":null,"previous_names":["ocp-devspaces-gamification/ds-challenge-05"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ocp-devspaces-gamification/ds-challenge-05","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocp-devspaces-gamification%2Fds-challenge-05","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocp-devspaces-gamification%2Fds-challenge-05/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocp-devspaces-gamification%2Fds-challenge-05/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocp-devspaces-gamification%2Fds-challenge-05/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ocp-devspaces-gamification","download_url":"https://codeload.github.com/ocp-devspaces-gamification/ds-challenge-05/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocp-devspaces-gamification%2Fds-challenge-05/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28716869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T05:53:42.649Z","status":"ssl_error","status_checked_at":"2026-01-24T05:53:41.698Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-08T00:53:57.339Z","updated_at":"2026-01-24T06:41:25.543Z","avatar_url":"https://github.com/ocp-devspaces-gamification.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Challenge-05\n\n### Scenario\n* Lets continue to built on top of ds-challenge-04\n* When you start the workspace, it will take sometime because all libraries are being downloaded as a part of the \"postStart\" event in the devfile. The subsequent restarts will happen quicker.\n* This section will explore on adding more extensions in consistent way and also debugging code.\n\n### Set Up + verification\n* Open a terminal. Run the below command to change the mvnw file to be executable\n  ```bash\n  chmod 755 mvnw\n  ```\n* Run the quarkus application using commands \"2. Start Development mode\" from devfile like you did in the previous lab(s)\n* Select your option \"y/n\" to the question (if asked) : Do you agree to contribute anonymous build time data to the Quarkus community?\n* Open a new terminal and execute below command. The response from the method has an error. The fifth character is \"S\" but it is returning \"h\"\n  ```bash\n  curl localhost:8080/api/challenge\n  ```\n* Open the \"src/main/java/org/acme/ChallengeResource.java\" and inspect the method challengeMethod()\n* Try to put a breakpoint and you realize that they do not work and or a way to do it\n* Find out what extension is required for adding breakpoints. Include the required line in the file \".vscode/extensions.json\"\n* Once you update the extensions.json, restart your workspace (This time it will be quicker). Now you should be able to put a breakpoint in the challengeMethod()\n* Rerun the quarkus application using commands \"2. Start Development mode\". \n* You can now use the \"Run \u0026 Debug\" from the navigation. Say Yes, if you are asked to change the \"Java Language Server to be run in Standard mode\". There is a \".vscode/launch.json\" already setup for you to use as a debug configuration.\n* Now fix the code, execute below command and ensure you are seeing \"The Fifth Chatacter in the word \"OpenShift\"=[S]\"\n  ```bash\n  curl localhost:8080/api/challenge\n  ```\n\n### Success Criteria\n* \".vscode/extensions.json\" is updated with the required debug extension\n* You have used the debugger to fix the challengeMethod() in \"src/main/java/org/acme/ChallengeResource.java\"\n\n### Resources \n* https://go.microsoft.com/fwlink/?LinkId=827846\n\n### What did we learn?\n* OpenShift DevSpaces reduces the Developers pain points. As a Developer, your life is getting simpler with the below\n    * Automatic Extensions (Language Support for Java(TM) by Red Hat) inclusion\n    * Automatic provisioning of required command line tools\n    * Consistent way of building, packaging and running the programs making faster iterative development\n    * Consistent way of creating standardized end points for current and future testing\n    * You can request additional resources easily similar to any workload in the kubernetes without the need for traditional hardware refreshes and or needing to require a compelete setup on brand new infrastructure\n    * Add events to your IDE which can allow to do tasks before start, after start or after stop    \n* Added to it, the core feature of debugging the code is also similar to your IDEs that you use daily\n* BIG TAKEAWAY\n    * OpenShift DevSpaces (With IDE as Code approach) works similar to your IDEs\n    * The above mentioned benefits enhance the developers joy\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focp-devspaces-gamification%2Fds-challenge-05","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Focp-devspaces-gamification%2Fds-challenge-05","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focp-devspaces-gamification%2Fds-challenge-05/lists"}