{"id":21672474,"url":"https://github.com/redis-developer/brewdis","last_synced_at":"2025-07-07T14:36:10.437Z","repository":{"id":94261131,"uuid":"209666996","full_name":"redis-developer/brewdis","owner":"redis-developer","description":"Retail demo","archived":false,"fork":false,"pushed_at":"2023-06-30T21:41:46.000Z","size":173869,"stargazers_count":13,"open_issues_count":16,"forks_count":20,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-12T03:53:30.024Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redis-developer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2019-09-19T23:42:45.000Z","updated_at":"2024-10-25T22:32:56.000Z","dependencies_parsed_at":"2025-04-12T03:53:31.275Z","dependency_job_id":"2b7a63be-f09c-4f77-b71c-f359b0844916","html_url":"https://github.com/redis-developer/brewdis","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-developer%2Fbrewdis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-developer%2Fbrewdis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-developer%2Fbrewdis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-developer%2Fbrewdis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redis-developer","download_url":"https://codeload.github.com/redis-developer/brewdis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-developer%2Fbrewdis/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258570753,"owners_count":22722238,"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-25T13:29:25.565Z","updated_at":"2025-07-07T14:36:10.432Z","avatar_url":"https://github.com/redis-developer.png","language":"Java","readme":"# Brewdis\n\n\nReal-time inventory demo based on data from [https://brewerydb.com](brewerydb.com).\n\n## Tech Stack\n\n\n- Spring Boot\n- Gradle 6.8.3\n- Kordamp Gradle plugins 0.46.0.\n- Redis\n- Redis Search\n\n\n\n## Architecture\n\n![image](https://raw.githubusercontent.com/redis-developer/brewdis/master/app/architecture.svg)\n\n\n\n\n\n## Run the demo\n\n```\ngit clone https://github.com/redis-developer/brewdis.git\ncd brewdis\ndocker-compose up\n```\n\nAccess the demo at http://localhost\n\n## Demo Steps\n\n\n\n## Products\n\nLaunch `redis-cli`\n\n### Show number of documents inRedis Searchindex:\n\n```\nFT.INFO products\n```\n\n### Run simple keyword search:\n\n```\nFT.SEARCH products chambly\n```\n\nTIP: `name`, `description`, `breweryName` are phonetic text fields so you will notice results containing words that sound similar.\n\n### Run prefix search:\n\n```\n`FT.SEARCH products chamb*`\n```\n\n- Open http://localhost[]\n- Enter a simple keyword search, e.g. `chambly`. Note highlighted matches.\n- Expand the filter panel by clicking on the filter button (image:https://pic.onlinewebfonts.com/svg/img_3152.png[width=24])\n- Enter some characters in the Brewery field to retrieve suggestions fromRedis Search(e.g. `Unib`)\n- Click the `Submit` button\n- Refine the search by adding a constraint on the alcohol content (ABV field):\n\n```\n`@abv:[7 9]`\n```\n- Change the sort-by field to `ABV` and click `Submit`\n\n\n### Availability\n\nClick `Availability` on one of the search results. This takes you to the availability map for that product.\n. The map shows stores near you where the selected product is currently available.\n. Stores in `green` have more than 20 in stock, `amber`: 10 to 20, `red`: less than 10\n\n### Inventory\n\n- Click on a store and then on the link that pops up\n- This takes you to the real-time inventory for that store\n- The *Available to Promise* field is updated in real-time based on current difference between supply (*On Hand*) and demand (*Reserved + Allocated + Virtual Hold*).\n\n\n### Configuration\n\nThe app server is built with Spring Boot which can be configured different ways: [Spring Boot Externalized Configuration](https://docs.spring.io/spring-boot/docs/2.2.x/reference/html/spring-boot-features.html#boot-features-external-config)\n\nDepending on the way you're running the demo you can either:\n\n- create a `application.properties` file based on the [one that ships with Brewdis](https://github.com/redis-developer/brewdis/blob/master/demo/brewdis-api/src/main/resources/application.properties)\n- specify JVM arguments like this:\n\n\n```\njava -jar brewdis.jar --spring.redis.host=localhost --spring.redis.port=6379 ...\n```\n\n- use environment variables:\n\n\n```\nexport spring.redis.host=localhost\nexport spring.redis.port=8080\nexport ...\njava -jar brewdis.jar\n```\n\nHere are the most common configuration options for this demo:\n\n- `spring.redis.host`: Redis database hostname (default: `localhost`)\n- `spring.redis.port`: Redis database port (default: `6379`)\n- `stomp.host`: Websocket server hostname (default: `localhost`)\n- `stomp.port`: Websocket server port (default: `8080`)\n- `stomp.protocol`: Websocket protocol (default: `ws`). Use `wss` for secure websockets\n- `inventory.generator.rate`: duration in millis the generator should sleep between inventory updates (default: `100`)\n- `availability-radius`: radius to find in-store availability (default: `25 mi`)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredis-developer%2Fbrewdis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredis-developer%2Fbrewdis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredis-developer%2Fbrewdis/lists"}