{"id":50948658,"url":"https://github.com/jdegand/document-upload-floci","last_synced_at":"2026-06-17T23:03:05.478Z","repository":{"id":355899564,"uuid":"1230132694","full_name":"jdegand/document-upload-floci","owner":"jdegand","description":"Angular Signal Form + Floci + S3 Bucket + Spring Boot + Docker","archived":false,"fork":false,"pushed_at":"2026-05-17T01:40:38.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-17T03:38:03.101Z","etag":null,"topics":["angular","aws-s3","docker","floci","spring-boot"],"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/jdegand.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-05T17:56:00.000Z","updated_at":"2026-05-17T01:40:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jdegand/document-upload-floci","commit_stats":null,"previous_names":["jdegand/document-upload-floci"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jdegand/document-upload-floci","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2Fdocument-upload-floci","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2Fdocument-upload-floci/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2Fdocument-upload-floci/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2Fdocument-upload-floci/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdegand","download_url":"https://codeload.github.com/jdegand/document-upload-floci/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2Fdocument-upload-floci/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34468766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"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":["angular","aws-s3","docker","floci","spring-boot"],"created_at":"2026-06-17T23:03:03.719Z","updated_at":"2026-06-17T23:03:05.466Z","avatar_url":"https://github.com/jdegand.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Document Upload Floci\n\nA document (`.pdf`, `.doc`, `.docx`) upload service using Floci (AWS emulator) and S3-compatible storage. The Angular frontend uses a signal-based form to upload documents to a Spring Boot backend.\n\n## Prerequisites\n\n- Java 25+ and Maven\n- Node.js and NPM\n- Docker and Docker Compose\n- AWS CLI (optional, for manual bucket management)\n\n## Getting Started\n\n1. Configure Environment Variables\n\n        Create a `.env` file in the project root directory:\n\n        ```bash\n        FLOCI_AUTH_PRESIGN_SECRET=your_secret_key_here\n        ```\n\n1. Start the Infrastructure\n\n        Spin up the Floci S3 emulator using Docker Compose:\n\n        ```bash\n        cd document-upload-floci\n        sudo docker compose up -d\n        ```\n\n1. Start the Backend\n\n        Launch the Spring Boot application:\n\n        ```bash\n        cd uploadbackend\n        mvn spring-boot:run\n        ```\n\n        Or run from your IDE.\n\n1. Start the Frontend\n\n        Install dependencies and start the Angular development server:\n\n        ```bash\n        cd uploadfrontend\n        npm install\n        npm start\n        ```\n\n## Usage\n\n1. Open your browser and navigate to `http://localhost:4200`.\n1. Fill out the signal-based upload form and submit your document.\n1. Verify the file is saved in the local bucket by visiting:\n\n        ```bash\n        http://localhost:4566/hr-policy-docs/\n        ```\n\n        Add the key to the URL to view the uploaded file's contents.\n\n## Configuration Alternatives\n\n### Skip AWS CLI in Docker\n\nIf you have the AWS CLI installed locally, you can remove it from the Docker container and manually create the bucket:\n\n        ```bash\n        aws --endpoint-url=http://localhost:4566 s3 mb s3://hr-policy-docs\n        ```\n\n### Automate Bucket Creation\n\nTo eliminate manual setup, initialize the bucket automatically inside the Spring Boot application using a CommandLineRunner bean:\n\n        ```java\n        @Bean\n        CommandLineRunner initBucket(S3Client s3Client) {\n            return args -\u003e {\n                try {\n                    s3Client.createBucket(b -\u003e b.bucket(\"hr-policy-docs\"));\n                } catch (S3Exception e) {\n                    // Bucket may already exist\n                }\n            };\n        }\n        ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdegand%2Fdocument-upload-floci","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdegand%2Fdocument-upload-floci","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdegand%2Fdocument-upload-floci/lists"}