<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Gautam Kumar</title>
    <description>The latest articles on DEV Community by Gautam Kumar (@gautamverma7).</description>
    <link>https://dev.to/gautamverma7</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1992708%2F309b0772-6e0d-41fd-b14b-5078c4bb7997.png</url>
      <title>DEV Community: Gautam Kumar</title>
      <link>https://dev.to/gautamverma7</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gautamverma7"/>
    <language>en</language>
    <item>
      <title>SpringBoot x QR code - PixelForest x REST</title>
      <dc:creator>Gautam Kumar</dc:creator>
      <pubDate>Sat, 17 May 2025 16:47:02 +0000</pubDate>
      <link>https://dev.to/gautamverma7/springboot-x-qr-code-pixelforest-x-rest-2f3l</link>
      <guid>https://dev.to/gautamverma7/springboot-x-qr-code-pixelforest-x-rest-2f3l</guid>
      <description>&lt;p&gt;Hahaha yes, spring too can do this ;)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;How REST fits in my app&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
The resource is the QR code image generated from the text.&lt;br&gt;
The HTTP method is GET — retrieving a resource (the QR code).&lt;br&gt;
The text parameter controls which QR code is generated.&lt;br&gt;
The server responds with an image directly, instead of JSON.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8l1alv57nwpzoqdeg6cs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8l1alv57nwpzoqdeg6cs.png" alt="Image description" width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;You can create the project via Spring Initializr or with the CLI:&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;spring init --boot-version=3.5.3 --java-version=21
cd PixelForest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Add these dependencies to your project&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;dependency&amp;gt;
  &amp;lt;groupId&amp;gt;com.google.zxing&amp;lt;/groupId&amp;gt;
  &amp;lt;artifactId&amp;gt;core&amp;lt;/artifactId&amp;gt;
  &amp;lt;version&amp;gt;3.5.0&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;gt;
&amp;lt;dependency&amp;gt;
  &amp;lt;groupId&amp;gt;com.google.zxing&amp;lt;/groupId&amp;gt;
  &amp;lt;artifactId&amp;gt;javase&amp;lt;/artifactId&amp;gt;
  &amp;lt;version&amp;gt;3.5.0&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;&lt;em&gt;Tools Used&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
Spring Boot 3.5&lt;br&gt;
Java 21&lt;br&gt;
Maven&lt;br&gt;
Google ZXing (QR code library)&lt;/p&gt;

&lt;p&gt;Refer to this link to know more about ZXing Library = &lt;a href="https://github.com/zxing/zxing" rel="noopener noreferrer"&gt;ZXing&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Refer to this GitHub link for the complete project = &lt;a href="https://github.com/gautamverma7/PixelForest" rel="noopener noreferrer"&gt;PixelForest&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Ways to Extend It&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Add JWT auth to secure the endpoint 🔐&lt;br&gt;
Store QR codes in the cloud or database 💾&lt;br&gt;
Build a React/Vue frontend for it 🎨&lt;br&gt;
Make it scanable from mobile apps 📱&lt;/p&gt;

&lt;p&gt;Feel Free to create PRs for my project and enhance it&lt;/p&gt;

</description>
      <category>springboot</category>
      <category>rest</category>
      <category>zxing</category>
      <category>qrcode</category>
    </item>
  </channel>
</rss>
