{"id":22954035,"url":"https://github.com/farman20ali/query_simulator","last_synced_at":"2026-04-11T08:01:47.736Z","repository":{"id":268086821,"uuid":"902251265","full_name":"farman20ali/query_simulator","owner":"farman20ali","description":"This project is a Quarkus-based Java application that simulates a data-fetching service. It operates by handling queries provided in text format, fetching relevant data without requiring variable creation. The project utilizes RESTful endpoints to handle input and provide structured outputs.","archived":false,"fork":false,"pushed_at":"2024-12-14T07:09:15.000Z","size":196,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T03:53:51.121Z","etag":null,"topics":["data-fetching","java","microservices","postgresql","postgresql-database","quarkus","rest-api","simulator"],"latest_commit_sha":null,"homepage":"","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/farman20ali.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-12-12T07:52:04.000Z","updated_at":"2024-12-14T07:09:19.000Z","dependencies_parsed_at":"2024-12-14T08:18:18.846Z","dependency_job_id":"e5d077d9-31fb-4f0d-a70d-058af942cdaa","html_url":"https://github.com/farman20ali/query_simulator","commit_stats":null,"previous_names":["farman20ali/query_simulator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/farman20ali/query_simulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farman20ali%2Fquery_simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farman20ali%2Fquery_simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farman20ali%2Fquery_simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farman20ali%2Fquery_simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farman20ali","download_url":"https://codeload.github.com/farman20ali/query_simulator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farman20ali%2Fquery_simulator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31673067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["data-fetching","java","microservices","postgresql","postgresql-database","quarkus","rest-api","simulator"],"created_at":"2024-12-14T16:14:49.250Z","updated_at":"2026-04-11T08:01:47.718Z","avatar_url":"https://github.com/farman20ali.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# query_simulator\nbackened development for react native app\n\n# Quarkus Simulator\n\n## Overview\nThis project is a Quarkus-based Java application that simulates a data-fetching service. It operates by handling queries provided in text format, fetching relevant data without requiring variable creation. The project utilizes RESTful endpoints to handle input and provide structured outputs.\n\n---\n\n## Features\n- Fetch data dynamically using query strings.\n- Supports POST requests for sending data.\n- Simplified handling of file-based parameters.\n- Example endpoint:\n  - `http://localhost:8002/irs/lov/ambulance_services`\n\n---\n\n## Sample POST Request\n```json\n{\n  \"fileName\": \"mobile\",\n  \"params\": \"03003\"\n}\n```\n- Endpoint: `{{ _.irs_ip }}:{{ _.irs_port }}/irs/user`\n- Query Example:\n  ```sql\n  SELECT * FROM vehicle_involved;\n  SELECT * FROM users WHERE mobile_number='%s';\n  ```\n\n---\n\n## Project Dependencies\n### Core Framework\n- **Quarkus**\n\n### Database\n- PostgreSQL\n\n### Key Dependencies (from `pom.xml`):\n- Quarkus RESTEasy\n- Quarkus RESTEasy Jackson\n- Quarkus Agroal\n- Quarkus JDBC PostgreSQL\n- Quarkus Hibernate Validator\n- Quarkus SmallRye OpenAPI\n- Quarkus SmallRye Metrics\n- Quarkus SmallRye Health\n- Quarkus Narayana JTA\n- BCrypt for encryption (via `jbcrypt`)\n- Kubernetes support\n- Jib for container image creation\n\n---\n\n## Getting Started\n### Prerequisites\n- Java 11 or later\n- Maven\n- PostgreSQL database\n\n### Running the Application\n1. Clone the repository:\n   ```bash\n   git clone \u003crepository-url\u003e\n   cd query_simulator\n   ```\n2. Build the project:\n   ```bash\n   mvn clean install\n   ```\n3. Run the Quarkus application:\n   ```bash\n   mvn quarkus:dev\n   ```\n\n### Configuration\nSet the following environment variables in the application:\n- `_.irs_ip` - IP address for the server.\n- `_.irs_port` - Port for the server.\n\n---\n\n## Example Endpoints\n### Fetching File Data\n- **URL:** `http://localhost:8002/irs/lov/{fileName}`\n- **Method:** GET\n- **Description:** Fetches data based on the provided file name.\n\n### Query Execution\n- **URL:** `{{ _.irs_ip }}:{{ _.irs_port }}/irs/user`\n- **Method:** POST\n- **Payload Example:**\n  ```json\n  {\n    \"fileName\": \"mobile\",\n    \"params\": \"03003\"\n  }\n  ```\n\n---\n\n## Tags\n- `Quarkus`\n- `Simulator`\n- `PostgreSQL`\n- `Java`\n- `REST API`\n- `Data Fetching`\n\n---\n\n## Contributing\n1. Fork the repository.\n2. Create a feature branch:\n   ```bash\n   git checkout -b feature-name\n   ```\n3. Commit changes:\n   ```bash\n   git commit -m \"Description of changes\"\n   ```\n4. Push to the branch:\n   ```bash\n   git push origin feature-name\n   ```\n5. Create a pull request.\n\n---\n\n## License\nThis project is licensed under the [MIT License](LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarman20ali%2Fquery_simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarman20ali%2Fquery_simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarman20ali%2Fquery_simulator/lists"}