{"id":36750453,"url":"https://github.com/octodemo/dsanchezcr","last_synced_at":"2026-01-12T12:43:37.617Z","repository":{"id":223703174,"uuid":"761292884","full_name":"octodemo/dsanchezcr","owner":"octodemo","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-21T15:54:59.000Z","size":469,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-02-21T17:00:11.096Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/octodemo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-21T15:46:03.000Z","updated_at":"2024-02-21T17:00:20.153Z","dependencies_parsed_at":"2024-02-21T17:00:19.176Z","dependency_job_id":"e3655e19-274a-4e76-ba4b-89b60a9c7aff","html_url":"https://github.com/octodemo/dsanchezcr","commit_stats":null,"previous_names":["octodemo/dsanchezcr"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/octodemo/dsanchezcr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octodemo%2Fdsanchezcr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octodemo%2Fdsanchezcr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octodemo%2Fdsanchezcr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octodemo%2Fdsanchezcr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/octodemo","download_url":"https://codeload.github.com/octodemo/dsanchezcr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octodemo%2Fdsanchezcr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":"2026-01-12T12:43:36.801Z","updated_at":"2026-01-12T12:43:37.605Z","avatar_url":"https://github.com/octodemo.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demo Bookstore v3\n\nThis is a simple Maven project that builds a standalone JAR which contains a Jetty webserver and a simple bookstore servlet. The application is able\nto be built into a container and then available to be deployed as an Azure Web App.\n\n![bookstore](https://user-images.githubusercontent.com/681306/114581130-5e2d4b00-9c77-11eb-837b-4efaefa29e39.png)\n\n\nThe Workflow files in this repository provide the following features:\n\n* Pull Requests code is built and tested using Maven and a Docker container published\n* Code QL scanning performed on each push\n* Each time a container is built, scanning of the containers will be performed and reported back in the security findings\n* Ability to deploy from a PR into `review` environment using labels:\n    - `deploy to test`\n    - `deploy to qa`\n    - `deploy to staging`\n* Azure review environments are destroyed once PR is closed (using Ansible triggered from deployment transitions)\n* Any commit to the default branch `main` will result in the `prod` Azure web application being updated to the latest code (Continuous Delivery)\n\nFor a step-by-step guide see: [Bookstore Demo](https://github.com/github/solutions-engineering/blob/master/guides/demo/end-to-end-demos/bookstore-demo.md)\n\n\n## Running the Web Application locally\n\nYou can run the web application locally using Maven for development purposes, which can be done either directly if you\nhave Maven and a JDK installed, or inside a container that has Maven and JDK installed.\n\n\n### GitHub Codespaces\n\nThis repository is configured with GitHub Codespaces to make it easy to start with a development environment fully configured.\n\nThe container used for the development environment is available from https://github.com/octodemo/container-java-development and is publically available.\nThere are multiple versions of this, all with the tags providing a specific combination of tools for various cloud vendors. By default you will get a\ncontainer with:\n* Maven 3.6.3 or later\n* JDK 11\n* Azure CLI tools\n\n\n### Running locally:\nTo build the software run the following command:\n\n```bash\n$ mvn package\n```\n\nThis will generate a jar file at `target/bookstore-v2-1.0.0-SNAPSHOT.jar` directory that when run with the command `java -jar target/bookstore-v2-1.0.0-SNAPSHOT.jar` will run the jetty web server.\nThe logs from the jar file should report the url to access the web server on, which is port `8080` by default.\n\n\n### Running in a Docker container:\n\nThe Codespace is configured to build and execute the container as a tasks.\n\n* `docker: build container` will build the java project and then the container for you, prompting for details along the way\n* `docker: run container` will allow you to run the container that you built allowing you to select the port that is bound to (`8080` by default).\n\nBuilding and running the container locally without the tasks in GitHub Codespaces can be done using the following;\n\n* `mvn package`\n* `docker build . --build-arg VERSION=1.0.0-SNAPSHOT --tag bookstore:latest` (update to the correct version that mvn package will build for you)\n* `docker run -p 8080:8080 bookstore:latest` to execute the container and bind to port `8080` to serve requests from\n\n### Flow diagram\n\nThe flow diagram below depicts the Actions' workflows that are pre-configured, the events that trigger each of them and the different Azure environments that are spinned up during the demo. \n\n![Azure_Bookstore_Demo drawio](https://user-images.githubusercontent.com/3329307/140162304-a72882b5-291a-4a6c-b43f-957b9a2a268c.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctodemo%2Fdsanchezcr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctodemo%2Fdsanchezcr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctodemo%2Fdsanchezcr/lists"}