{"id":24803945,"url":"https://github.com/raonigabriel/spring-qrcode-example","last_synced_at":"2025-10-13T05:31:04.823Z","repository":{"id":39977535,"uuid":"46798744","full_name":"raonigabriel/spring-qrcode-example","owner":"raonigabriel","description":"Demonstrates some of the capabilities of the Spring Boot framework through a small, simple example.","archived":false,"fork":false,"pushed_at":"2023-03-06T06:57:17.000Z","size":154,"stargazers_count":24,"open_issues_count":3,"forks_count":17,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-03T15:59:16.392Z","etag":null,"topics":["java","microservice","qrcode","spring-boot","zxing"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raonigabriel.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}},"created_at":"2015-11-24T15:00:12.000Z","updated_at":"2022-11-10T09:29:37.000Z","dependencies_parsed_at":"2023-02-12T00:15:38.852Z","dependency_job_id":null,"html_url":"https://github.com/raonigabriel/spring-qrcode-example","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/raonigabriel/spring-qrcode-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raonigabriel%2Fspring-qrcode-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raonigabriel%2Fspring-qrcode-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raonigabriel%2Fspring-qrcode-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raonigabriel%2Fspring-qrcode-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raonigabriel","download_url":"https://codeload.github.com/raonigabriel/spring-qrcode-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raonigabriel%2Fspring-qrcode-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013703,"owners_count":26085393,"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-10-13T02:00:06.723Z","response_time":61,"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":["java","microservice","qrcode","spring-boot","zxing"],"created_at":"2025-01-30T06:14:07.478Z","updated_at":"2025-10-13T05:31:04.566Z","avatar_url":"https://github.com/raonigabriel.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=raonigabriel_spring-qrcode-example\u0026metric=ncloc)](https://sonarcloud.io/summary/new_code?id=raonigabriel_spring-qrcode-example)\n![Maven Build](https://github.com/raonigabriel/spring-qrcode-example/workflows/Maven%20Build/badge.svg?branch=master)\n[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=raonigabriel_spring-qrcode-example\u0026metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=raonigabriel_spring-qrcode-example)\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=raonigabriel_spring-qrcode-example\u0026metric=security_rating)](https://sonarcloud.io/summary/new_code?id=raonigabriel_spring-qrcode-example)\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=raonigabriel_spring-qrcode-example\u0026metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=raonigabriel_spring-qrcode-example)\n[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=raonigabriel_spring-qrcode-example\u0026metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=raonigabriel_spring-qrcode-example)\n[![Libraries](https://img.shields.io/librariesio/github/raonigabriel/spring-qrcode-example)](https://libraries.io/github/raonigabriel/spring-qrcode-example)\n[![Open in Remote - Containers](https://img.shields.io/static/v1?label=Remote%20-%20Containers\u0026message=Open\u0026color=blue\u0026logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/raonigabriel/spring-qrcode-example)\n\nSpring Boot QrCode Example\n-------------------\nDemonstrates some capabilities of the Spring Boot framework through a small, simple example.\nAfter reviewing this example, you should have a good understanding of what Spring Boot can do and get a feel for how easy it is to use.\n#Features:\n\n1. [Spring Boot 2.7.x](https://github.com/raonigabriel/spring-qrcode-example/blob/master/pom.xml#L39), supporting fully executable JARs for Linux based operating systems\n2. WebFlux rest controller to [generate qrcode images](https://github.com/raonigabriel/spring-qrcode-example/blob/master/src/main/java/com/github/raonigabriel/qrcode/SpringExampleApp.java#L54)\n  1. Produces binary [Content-Type (PNG)](https://github.com/raonigabriel/spring-qrcode-example/blob/master/src/main/java/com/github/raonigabriel/qrcode/SpringExampleApp.java#L53)\n  2. HTTP header manipulation [(Cache-Control)](https://github.com/raonigabriel/spring-qrcode-example/blob/master/src/main/java/com/github/raonigabriel/qrcode/SpringExampleApp.java#L56)\n  3. Java [Exception translation](https://github.com/raonigabriel/spring-qrcode-example/blob/master/src/main/java/com/github/raonigabriel/qrcode/SpringExampleApp.java#L73) to HTTP status code\n  4. Manual cache eviction [(HTTP DELETE)](https://github.com/raonigabriel/spring-qrcode-example/blob/master/src/main/java/com/github/raonigabriel/qrcode/SpringExampleApp.java#L62)\n  5. CORS enabled [(GET, DELETE)](https://github.com/raonigabriel/spring-qrcode-example/blob/master/src/main/java/com/github/raonigabriel/qrcode/SpringExampleApp.java#L40)\n3. [Reactive processing](https://github.com/raonigabriel/spring-qrcode-example/blob/master/src/main/java/com/github/raonigabriel/qrcode/ImageService.java#L35) (for the image creation)\n  1. Uses the [Fast Java QrCode Generator library](https://github.com/nayuki/QR-Code-generator/tree/master/java-fast) by [nayuki](https://github.com/nayuki).\n4. Spring IoC ([Service](https://github.com/raonigabriel/spring-qrcode-example/blob/master/src/main/java/com/github/raonigabriel/qrcode/ImageService.java#L29), [Autowired](https://github.com/raonigabriel/spring-qrcode-example/blob/master/src/main/java/com/github/raonigabriel/qrcode/SpringExampleApp.java#L47))\n5. [Backend caching](https://github.com/raonigabriel/spring-qrcode-example/blob/master/src/main/java/com/github/raonigabriel/qrcode/ImageService.java#L30) (Spring \"simple\" memory-based ConcurrentHashMap)\n6. Scheduled tasks. Automatic cache eviction, [every 30 minutes](https://github.com/raonigabriel/spring-qrcode-example/blob/master/src/main/java/com/github/raonigabriel/qrcode/SpringExampleApp.java#L60).\n7. [Logging](https://github.com/raonigabriel/spring-qrcode-example/blob/master/src/main/java/com/github/raonigabriel/qrcode/ImageService.java#L33) (sl4j + logback)\n8. Only 2 classes, about 100 lines of code!!! \n9. Small. Final JAR includes everything (it self-contained) and it's about 18 MB\n\n\nTo get the code:\n-------------------\nClone the repository:\n\n    $ git clone https://github.com/raonigabriel/spring-qrcode-example.git\n\nIf this is your first time using Github, review http://help.github.com to learn the basics.\n\nTo run the application:\n-------------------\t\nFrom the command line with Maven:\n\n    $ cd spring-qrcode-example\n    $ mvn spring-boot:run \n\nFrom the command line with Linux:\n\n    $ cd spring-qrcode-example/target\n    $ ./spring-qrcode-example-x.y.z.jar\n\nUsing docker:\n\n    $ docker run -d --name qrcode-service --rm -p 8080:8080 raonigabriel/spring-qrcode-example\n\n\nAccess the deployed web application [http://localhost:8080/qrcode?text=Hello%20World%20From%20Spring](http://localhost:8080/qrcode?text=Hello%20World%20From%20Spring)\n\nor\n\nIn your preferred IDE such as SpringSource Tool Suite (STS) or IDEA:\n\n* Import spring-qrcode-example as a Maven Project\n\n## License\n\nCode on package \"com.github.raonigabriel\" **(my code)** is released under the [Apache 2.0 license](http://www.apache.org/licenses/LICENSE-2.0.html)\n\nCode under on \"io.nayuki.fastqrcodegen\" **(nayuki code)** is released under the [MIT license](https://choosealicense.com/licenses/mit/)\n\n## Disclaimer\n* This code comes with no warranty. Use it at your own risk.\n* I don't like Apple. Fuck off, fan-boys.\n* I don't like left-winged snowflakes. Fuck off, code-covenant. \n* I will call my branches the old way. Long live **master**, fuck-off renaming.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraonigabriel%2Fspring-qrcode-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraonigabriel%2Fspring-qrcode-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraonigabriel%2Fspring-qrcode-example/lists"}