{"id":26567607,"url":"https://github.com/queritylib/querity-demo","last_synced_at":"2025-07-22T19:05:43.700Z","repository":{"id":281808663,"uuid":"946152796","full_name":"queritylib/querity-demo","owner":"queritylib","description":"Demo project for the Querity library","archived":false,"fork":false,"pushed_at":"2025-07-21T05:11:31.000Z","size":1064,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-22T02:04:04.115Z","etag":null,"topics":["database","elasticsearch","java","jpa","mongodb","nosql","query-builder","spring","spring-data","sql"],"latest_commit_sha":null,"homepage":"https://querity-demo.onrender.com","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/queritylib.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":"2025-03-10T17:35:25.000Z","updated_at":"2025-07-01T13:45:59.000Z","dependencies_parsed_at":"2025-03-21T15:54:41.158Z","dependency_job_id":"ad379e9d-1d0c-4043-9630-3677ed029d9d","html_url":"https://github.com/queritylib/querity-demo","commit_stats":null,"previous_names":["brunomendola/querity-demo","queritylib/querity-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/queritylib/querity-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queritylib%2Fquerity-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queritylib%2Fquerity-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queritylib%2Fquerity-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queritylib%2Fquerity-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/queritylib","download_url":"https://codeload.github.com/queritylib/querity-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queritylib%2Fquerity-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266554362,"owners_count":23947318,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["database","elasticsearch","java","jpa","mongodb","nosql","query-builder","spring","spring-data","sql"],"created_at":"2025-03-22T19:19:55.424Z","updated_at":"2025-07-22T19:05:43.683Z","avatar_url":"https://github.com/queritylib.png","language":"Java","readme":"Querity - Demo Application\n==========================\n\nWelcome to **Querity Demo** – a minimal yet complete example showcasing the power and simplicity of the \n[**Querity**](https://github.com/queritylib/querity) query language for full-stack filtering, sorting, and pagination.\n\nThis demo illustrates how to integrate Querity across both backend and frontend:\n\n- **Backend**: A Spring Boot REST API using \n[`querity-spring-data-jpa`](https://github.com/queritylib/querity/tree/main/querity-spring-data-jpa) to query an in-memory **H2** database of orders.\n- **Frontend**: A React-based UI built with \n[`@queritylib/react`](https://github.com/queritylib/querity-react) to construct dynamic queries and display results in a grid.\n\nQuerity enables expressive, consistent, and secure querying capabilities across your stack – from API consumers to the database layer – with minimal effort.\n\n\u003e 💡 Whether you're building internal tools or public APIs, Querity helps you deliver powerful query functionality without reinventing the wheel.\n\nSee the live demo at ➡️ [Querity Demo](https://querity-demo.onrender.com/) ⬅️.\n\n## Running\n\nRun the application with the following command:\n\n```bash\n./mvnw -Pwith-frontend spring-boot:run\n```\n\nThen open your browser to `http://localhost:8080`, you should see a simple web page with a form to query the orders.\n\nThere's also a Swagger-UI interface available at `http://localhost:8080/swagger-ui/index.html` to test the API.\n\nNow try out the query language by replacing the query string with any valid query (see [Documentation](https://queritylib.github.io/querity/#query-language-syntax)).\n\nSome examples:\n\n`shippingCustomer.address.country=\"France\" sort by placementDate desc page 1,20`\n\n\u003e This query filters by shipping address country, sorts the results by placement date in descending order and paginates\n\u003e the results, returning the first page with 20 elements.\n\n`distinct and(rows.totalPrice\u003e1000, currency=\"EUR\") sort by totalPrice desc page 1,10`\n\n\u003e Notice how the above query string filters by a field nested in a collection (`rows.totalPrice`).\n\u003e\n\u003e In this case the `distinct` keyword is used to avoid duplicate rows and pagination issues.\n\n## Other info\n\nYou can view the ER diagram of the database [here](/assets/er-diagram.png).\n\nTest dataset generated with Mockaroo: https://mockaroo.com/85a9ebf0\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueritylib%2Fquerity-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqueritylib%2Fquerity-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueritylib%2Fquerity-demo/lists"}