{"id":29481809,"url":"https://github.com/amitkc2309/document-ingestion","last_synced_at":"2026-04-11T01:07:33.102Z","repository":{"id":295718051,"uuid":"985574922","full_name":"amitkc2309/document-ingestion","owner":"amitkc2309","description":"A comprehensive document management system that allows users to upload, process, search and manage documents of various formats (PDF, DOCX, etc.).","archived":false,"fork":false,"pushed_at":"2025-05-27T02:18:03.000Z","size":321,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-27T03:28:01.961Z","etag":null,"topics":["docker","elasticsearch","java","jpa-hibernate","kafka","nextjs","postgresql","reactjs","redis-cache","spring-boot","spring-security"],"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/amitkc2309.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,"zenodo":null}},"created_at":"2025-05-18T04:08:59.000Z","updated_at":"2025-05-27T02:18:06.000Z","dependencies_parsed_at":"2025-06-02T20:34:16.963Z","dependency_job_id":null,"html_url":"https://github.com/amitkc2309/document-ingestion","commit_stats":null,"previous_names":["amitkc2309/document-ingestion"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amitkc2309/document-ingestion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitkc2309%2Fdocument-ingestion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitkc2309%2Fdocument-ingestion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitkc2309%2Fdocument-ingestion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitkc2309%2Fdocument-ingestion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amitkc2309","download_url":"https://codeload.github.com/amitkc2309/document-ingestion/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitkc2309%2Fdocument-ingestion/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265382030,"owners_count":23756283,"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":["docker","elasticsearch","java","jpa-hibernate","kafka","nextjs","postgresql","reactjs","redis-cache","spring-boot","spring-security"],"created_at":"2025-07-15T01:01:26.813Z","updated_at":"2026-04-11T01:07:33.057Z","avatar_url":"https://github.com/amitkc2309.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Document Management System\n\nA comprehensive document management system that allows users to upload, process, search and manage documents of various formats (PDF, DOCX, etc.).\n\n## Features\n\nThe system is built with a modern, scalable architecture that provides the following features:\n\n#### Backend Services (Spring Boot)\n- **Document Management**: \n  - Upload, retrieve, and delete documents\n  - Secure file storage with metadata tracking\n  - Support for multiple document formats (PDF, DOCX, etc)\n- **Authentication \u0026 Authorization**: \n  - JWT-based authentication and Role-based access control\n\n#### Search \u0026 Processing (Elasticsearch \u0026 Kafka)\n  - Full-text search across document content powered by **Elasticsearch**\n  - Search by title, author, and document type\n  - Background document processing via **Kafka**\n\n#### Data Storage \u0026 Caching\n  - Document metadata and User storage in **PostgreSQL Database**\n  - High-performance caching layer using **Redis**\n\n### System Architecture\n\n```\n                         ┌───────────────────┐\n                         │     Next.js       │\n                         │     Frontend      │\n                         └────────┬──────────┘\n                                  │\n                                  ▼\n                         ┌───────────────────┐\n                         │   Spring Boot     │\n                         │     Backend       │\n                         └────────┬──────────┘\n                                  │\n       ┌──────────────────────────┼────────────────────────┐\n       ▼                          ▼                        ▼\n┌─────────────┐        ┌───────────────────┐       ┌────────────────────┐\n│   Redis     │        │     Kafka         │       │                    │\n│   Cache     │        │   Message Broker  │       │                    │\n└────┬────────┘        └─────────┬─────────┘       │                    │\n     │                           │                 │   Elasticsearch    │\n     ▼                           ▼                 │                    │\n┌─────────────┐           ┌───────────────┐        │                    │\n│ PostgreSQL  │           │ KafkaListener │────────▶                    │\n│  Database   │           │ (Async Logic) │        └────────────────────┘\n└─────────────┘           └───────────────┘\n\n```\n\n### Frontend\n\n#### 1. Document Upload \u0026 Management\n![Document Management Interface](sample/1.jpg)\n*Upload and manage documents with an intuitive interface*\n\n#### 2. Q\u0026A\n![Q\u0026A](sample/2.jpg)\n*Search in documents content*\n\n#### 3. Security\n![Security](sample/3.jpg)\n\n## Prerequisites\n\n- Java 21 or higher\n- Maven\n- Docker and Docker Compose\n- Node.js and npm\n\n## Running on Docker\n\n### 1. Clone the repository\n\n```\ngit clone https://github.com/amitkc2309/document-ingestion\n```\n\n### 2. Build Image for backend service\n\n```\ncd di-backend\nmvn compile jib:dockerBuild\n```\n\n### 3. Build Image for Frontend\n\n```\ncd di-frontend\ndocker build --no-cache -t amitking2309/document-ingestion-ui .\n```\n\n### 4. Start the docker services\n\n```\ncd di-docker\ndocker-compose up -d\n```\n\nThis will start PostgreSQL, Kafka, Elasticsearch, Redis, backend and frontend services.\n\nThe application will be available at http://localhost:3000  \nRegister a user then login to interact with the application.\n\n## API Documentation\n\nOnce the application is running, you can access the Swagger UI at:\n\n```\nhttp://localhost:8080/swagger-ui.html\n```\n\n## API Endpoints\n\n### Authentication\n\n- `POST /api/auth/register` - Register a new user\n- `POST /api/auth/login` - Login a user\n- `POST /api/auth/logout` - Logout a user\n\n### Document Management\n\n- `POST /api/documents/upload` - Upload a document (requires ADMIN or EDITOR role)\n- `GET /api/documents/{id}` - Get document by ID\n- `DELETE /api/documents/{id}` - Delete document (requires ADMIN or EDITOR role)\n- `GET /api/documents/by-author` - Find documents by author\n- `GET /api/documents/by-title` - Find documents by title\n- `GET /api/documents/by-type` - Find documents by type\n\n### Question \u0026 Answer\n\n- `POST /api/qa/ask` - Ask a question and get relevant document snippets\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famitkc2309%2Fdocument-ingestion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famitkc2309%2Fdocument-ingestion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famitkc2309%2Fdocument-ingestion/lists"}