{"id":20664670,"url":"https://github.com/cernockyd/gcf-invoice-generator","last_synced_at":"2025-07-29T21:36:02.281Z","repository":{"id":224091208,"uuid":"170036001","full_name":"cernockyd/gcf-invoice-generator","owner":"cernockyd","description":"Simple GCF invoice pdf generator","archived":false,"fork":false,"pushed_at":"2022-12-08T12:52:54.000Z","size":617,"stargazers_count":5,"open_issues_count":3,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-28T09:42:33.875Z","etag":null,"topics":["gcf","html-pdf","invoice","invoice-generator","lambda-functions","pdf"],"latest_commit_sha":null,"homepage":"https://medium.com/@cernockyd/generating-pdf-invoices-with-google-cloud-function-4cb9b4ed984","language":"JavaScript","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/cernockyd.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}},"created_at":"2019-02-10T22:44:35.000Z","updated_at":"2023-03-07T05:07:29.000Z","dependencies_parsed_at":"2024-02-23T18:30:19.558Z","dependency_job_id":"a74d3d40-790e-4c07-b502-93b400d15764","html_url":"https://github.com/cernockyd/gcf-invoice-generator","commit_stats":null,"previous_names":["cernockyd/gcf-invoice-generator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cernockyd/gcf-invoice-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cernockyd%2Fgcf-invoice-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cernockyd%2Fgcf-invoice-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cernockyd%2Fgcf-invoice-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cernockyd%2Fgcf-invoice-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cernockyd","download_url":"https://codeload.github.com/cernockyd/gcf-invoice-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cernockyd%2Fgcf-invoice-generator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267763929,"owners_count":24140828,"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-29T02:00:12.549Z","response_time":2574,"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":["gcf","html-pdf","invoice","invoice-generator","lambda-functions","pdf"],"created_at":"2024-11-16T19:25:42.024Z","updated_at":"2025-07-29T21:36:02.257Z","avatar_url":"https://github.com/cernockyd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Cloud Function Invoice Generator\n\nSimple invoice generator that takes HTML template and generates PDF invoice based on JSON input.\nExample template uses [sparksuite/simple-html-invoice-template](https://github.com/sparksuite/simple-html-invoice-template).\n\n![screenshot](examples/example-screenshot.png)\n\n\n## Demo\n\nFind [PDF demo here](examples/example.pdf).\n\n\n## Get started\n\nSee preview in browser\n```bash\nnode render-preview.js \u0026\u0026 open preview.html\n```\n\nDeploy\n- replace `BUCKET_NAME`\n\n```bash\ngcloud beta functions deploy generateInvoice --stage-bucket BUCKET_NAME --trigger-http\n```\n\nUsage\n1. replace `GCF_URL`\n2. run following command and see `test-invoice.pdf`\n\n```bash\n\ncurl -X POST \"GCF_URL\" -H \"Content-Type:application/json\" --data '\n{\n\"id\":\"808xD\",\n\"dateIssue\":\"1. 1. 2019\",\n\"dateDue\":\"1. 2. 2019\",\n\"companyAddressLines\":[\n  \"Random Company\",\n  \"7687 Edgemont St. \",\n  \"02026\",\n  \"VAT Reg no: 32162\"\n],\n\"userAdressLines\":[\n  \"John Doe\",\n  \"440 Cedar Street\",\n  \"VAT Reg no: 90403\"\n  ],\n\"item\": {\n  \"name\":\"Monthly Subscription Plan \",\n  \"price\":\"150 USD\"\n},\n\"status\":\"PAID\"\n}' \u003e test-invoice.pdf\n```\n\n\n## Font license\nUsed font in this repository is [Roboto](https://fonts.google.com/specimen/Roboto), licensed under [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcernockyd%2Fgcf-invoice-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcernockyd%2Fgcf-invoice-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcernockyd%2Fgcf-invoice-generator/lists"}