{"id":21864182,"url":"https://github.com/hadarisas/elasticsearch-demo","last_synced_at":"2026-02-09T18:31:32.987Z","repository":{"id":265145915,"uuid":"895271546","full_name":"hadarisas/elasticsearch-demo","owner":"hadarisas","description":"Elasticsearch Product Search Demo  A full-stack application demonstrating Elasticsearch functionality with a Google-like product search interface. Built with Vue.js, Express.js, and Elasticsearch.","archived":false,"fork":false,"pushed_at":"2024-12-02T10:47:28.000Z","size":9215,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T14:13:09.091Z","etag":null,"topics":["api","debounce","elasticsearch","elasticsearch-client","elasticstack","express-js","expressjs","tailwind-css","tailwindcss","vue","vue3","vuejs"],"latest_commit_sha":null,"homepage":"","language":"Vue","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/hadarisas.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-11-27T22:18:00.000Z","updated_at":"2024-12-31T02:03:35.000Z","dependencies_parsed_at":"2025-03-21T20:44:30.542Z","dependency_job_id":"e7a2a69a-09a4-4d35-9f70-b0f2fd5e2086","html_url":"https://github.com/hadarisas/elasticsearch-demo","commit_stats":null,"previous_names":["hadarisas/elasticsearch-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hadarisas/elasticsearch-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadarisas%2Felasticsearch-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadarisas%2Felasticsearch-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadarisas%2Felasticsearch-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadarisas%2Felasticsearch-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hadarisas","download_url":"https://codeload.github.com/hadarisas/elasticsearch-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadarisas%2Felasticsearch-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29275526,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T17:15:22.002Z","status":"ssl_error","status_checked_at":"2026-02-09T17:14:42.395Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["api","debounce","elasticsearch","elasticsearch-client","elasticstack","express-js","expressjs","tailwind-css","tailwindcss","vue","vue3","vuejs"],"created_at":"2024-11-28T04:07:46.275Z","updated_at":"2026-02-09T18:31:32.935Z","avatar_url":"https://github.com/hadarisas.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elasticsearch Product Search Demo\n\nA full-stack application demonstrating Elasticsearch functionality with a Google-like product search interface. Built with Vue.js, Express.js, and Elasticsearch.\n\n### Demo Screenshots\n\n![Search Demo](screenshots/demo.gif)\n_Search demo_\n\n### Health Check\n\n![Health Check](screenshots/health.png)\n_Health check endpoint to ensure the application is running_\n\n### Home Page (Google-like)\n\n![Home Page](screenshots/homescreen.png)\n_Initial search interface with Google-like design_\n\n### Exact Match\n\n![Exact Match](screenshots/search_exact_match.png)\n_Exact match search results_\n\n### Fuzzy Match - Typo with suggestions\n\n![Fuzzy Match](screenshots/search_fuzzy_match.png)\n_Fuzzy match search results (with typo)_\n\n### Search Pagination\n\n![Search Pagination](screenshots/search_pagination.png)\n_Search results pagination_\n\n### Kibana Dashboard - Document List\n\n![Kibana Dashboard - Document List](screenshots/kibana_doclist.png)\n_Search suggestions as you type_\n\n### Kibana Dashboard - Document Details\n\n![Kibana Dashboard - Document Details](screenshots/kibana_docdetails_part1.png)\n_Kibana dashboard showing document details_\n\n![Kibana Dashboard - Document Details](screenshots/kibana_docdetails_part2.png)\n_Kibana dashboard showing document details_\n\n### Kibana Dashboard - Product Index Settings\n\n![Kibana Dashboard - Product Index Settings](screenshots/kibana_product_index_settings.png)\n_Kibana dashboard showing product index settings_\n\n### Kibana Dashboard - Product Index Mapping\n\n![Kibana Dashboard - Product Index Mapping](screenshots/kibana_product_index_mapping.png)\n_Kibana dashboard showing product index mapping_\n\n## Features\n\n- 🔍 Real-time product search with exact and fuzzy matching (with suggestions in typo cases)\n- 💡 Search suggestions as you type\n- 📱 Responsive Google-like interface\n- 📊 Search results pagination\n- ⚡ Fast search performance\n- 📈 Kibana integration for data visualization\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed:\n\n- [Docker](https://docs.docker.com/get-docker/)\n- [Docker Compose](https://docs.docker.com/compose/install/)\n- Git\n\n## Quick Start\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/hadarisas/elasticsearch-demo.git\ncd elasticsearch-demo\ncp server/env_example server/env\n```\n\n2. Start the application using Docker Compose:\n\n```bash\ndocker compose up -d\n```\n\n3. Wait for all services to start (this may take a few minutes on first run). You can check the status with:\n\n```bash\ndocker compose ps\n```\n\n4. Access the application:\n\n- Frontend: http://localhost:8080\n- API Server: http://localhost:3001\n- Elasticsearch: http://localhost:9200\n- Kibana: http://localhost:5601\n- Health Check: http://localhost:3001/health\n\n## Architecture\n\nThe application consists of four main components:\n\n- **Frontend (Vue.js)**: A responsive web interface running on port 8080\n- **Backend (Express.js)**: REST API server running on port 3001\n- **Elasticsearch**: Search engine running on port 9200\n- **Kibana**: Data visualization platform running on port 5601\n\n## Development Setup\n\nIf you want to modify the code and run the services individually:\n\n1. First, start Elasticsearch and Kibana using the development Docker Compose file:\n\n```bash\ndocker compose -f docker-compose.copy.yml up -d\n```\n\n2. Set up the Frontend:\n\n```bash\ncd client\nnpm install\nnpm run dev\n```\n\nThe frontend will be available at http://localhost:5173\n\n3. Set up the Backend:\n\n```bash\ncd server\ncp .env.example .env    # Configure your environment variables\nnpm install\nnpm run dev\n```\n\nThe backend will be available at http://localhost:3001\n\n\u003e **Note:** For development, we use `docker-compose.copy.yml` which only runs Elasticsearch and Kibana services. This allows you to run the frontend and backend services locally while still connecting to the containerized search infrastructure.\n\n## API Endpoints\n\n### Search Products\n\n- **URL**: `/api/search`\n- **Method**: `GET`\n- **Query Parameters**:\n  - `q`: Search query\n  - `page`: Page number (default: 1)\n  - `limit`: Results per page (default: 5)\n- **Example**: `http://localhost:3001/api/search?q=iphone\u0026page=1\u0026limit=5`\n\n### Health Check\n\n- **URL**: `/health`\n- **Method**: `GET`\n- **Example**: `http://localhost:3001/health`\n\n## Docker Images\n\nThe application uses the following Docker images:\n\n- Frontend: `hadarisas/elasticsearch-demo-client:1.0`\n- Backend: `hadarisas/elasticsearch-demo-server:1.0`\n- Elasticsearch: `docker.elastic.co/elasticsearch/elasticsearch:8.12.0`\n- Kibana: `docker.elastic.co/kibana/kibana:8.12.0`\n\n## Troubleshooting\n\n1. **Services not starting:**\n\n   ```bash\n   # Check service logs\n   docker compose logs -f\n   ```\n\n2. **Elasticsearch not healthy:**\n\n   ```bash\n   # Check Elasticsearch status\n   curl http://localhost:9200/_cluster/health\n   ```\n\n3. **Reset everything and start fresh:**\n   ```bash\n   docker compose down -v\n   docker compose up -d\n   ```\n\n## Data Management\n\nThe application comes with pre-loaded sample product data. The data is automatically initialized when the server starts. If you need to reset the data:\n\n1. Stop the containers:\n\n   ```bash\n   docker compose down\n   ```\n\n2. Remove the volume:\n\n   ```bash\n   docker volume rm elasticsearch-demo_elasticsearch-data\n   ```\n\n3. Restart the application:\n   ```bash\n   docker compose up -d\n   ```\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## Contact\n\nEL HADRI HASSAN - hadarisas@gmail.com\n\nProject Link: [https://github.com/hadarisas/elasticsearch-demo](https://github.com/hadarisas/elasticsearch-demo)\n\n## Acknowledgments\n\n- [Elasticsearch Documentation](https://www.elastic.co/guide/index.html)\n- [Vue.js](https://vuejs.org/)\n- [Express.js](https://expressjs.com/)\n- [Docker](https://www.docker.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadarisas%2Felasticsearch-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhadarisas%2Felasticsearch-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadarisas%2Felasticsearch-demo/lists"}