{"id":21192236,"url":"https://github.com/bujosa/code-generator","last_synced_at":"2025-03-14T21:13:20.717Z","repository":{"id":208371663,"uuid":"720278276","full_name":"bujosa/code-generator","owner":"bujosa","description":"This is a simple project for code generator","archived":false,"fork":false,"pushed_at":"2023-12-03T01:29:08.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-11T10:53:20.085Z","etag":null,"topics":["code-generator","qr-code-generator","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bujosa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-18T01:57:57.000Z","updated_at":"2023-11-21T04:56:47.000Z","dependencies_parsed_at":"2023-11-21T06:44:36.114Z","dependency_job_id":null,"html_url":"https://github.com/bujosa/code-generator","commit_stats":null,"previous_names":["bujosa/code-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bujosa%2Fcode-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bujosa%2Fcode-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bujosa%2Fcode-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bujosa%2Fcode-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bujosa","download_url":"https://codeload.github.com/bujosa/code-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243646667,"owners_count":20324586,"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":["code-generator","qr-code-generator","rust"],"created_at":"2024-11-20T19:08:04.395Z","updated_at":"2025-03-14T21:13:20.696Z","avatar_url":"https://github.com/bujosa.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# code-generator\nThis is a simple project for generating QR codes from text.\n\n## Description\nThis project uses the Actix web framework and the `qrcode_generator` crate to create a web server that generates QR codes. It exposes a POST endpoint at \"/qr\" that accepts JSON data with a \"text\" field. The server generates a QR code from this text and returns the QR code as a PNG image.\n\n## How to use\nFirst, clone the repository and navigate into the project directory. Then, run the server using Cargo:\n\n```bash\ncargo run\n```\nOnce the server is running, you can generate a QR code by sending a POST request to \"http://localhost:8080/qr\" with JSON data containing the text. Here's an example using curl:\n\n```bash\ncurl -X POST -H \"Content-Type: application/json\" -d '{\"text\":\"Hello, world!\"}' http://localhost:8080/qr \u003e qrcode.png\n```\n\nThis command sends a POST request with the text \"Hello, world!\" and saves the returned QR code to a file named \"qrcode.png\".\n\n## Dependencies\n\n* [Actix Web](https://actix.rs/)\n* [qrcode_generator](https://crates.io/crates/qrcode_generator)\n\n## License\n\n[MIT](LICENSE)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbujosa%2Fcode-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbujosa%2Fcode-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbujosa%2Fcode-generator/lists"}