<?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: sbuilds </title>
    <description>The latest articles on DEV Community by sbuilds  (@sbuilds_108).</description>
    <link>https://dev.to/sbuilds_108</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%2F3976457%2F7d9802c9-5aaf-4f2e-b77f-d5b327504af2.png</url>
      <title>DEV Community: sbuilds </title>
      <link>https://dev.to/sbuilds_108</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sbuilds_108"/>
    <language>en</language>
    <item>
      <title>I built a Spring Boot + Angular + JWT Full Stack Starter Kit — here's what I learned</title>
      <dc:creator>sbuilds </dc:creator>
      <pubDate>Tue, 09 Jun 2026 18:13:53 +0000</pubDate>
      <link>https://dev.to/sbuilds_108/i-built-a-spring-boot-angular-jwt-full-stack-starter-kit-heres-what-i-learned-2hhp</link>
      <guid>https://dev.to/sbuilds_108/i-built-a-spring-boot-angular-jwt-full-stack-starter-kit-heres-what-i-learned-2hhp</guid>
      <description>&lt;h2&gt;
  
  
  Why I built this
&lt;/h2&gt;

&lt;p&gt;Every time I started a new Java full stack project I was &lt;br&gt;
spending 2-3 days just on setup — JWT configuration, &lt;br&gt;
Spring Security, CORS, connecting Angular to backend.&lt;/p&gt;

&lt;p&gt;So I decided to build a reusable starter kit once and &lt;br&gt;
never do that setup again.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;A complete full stack starter kit with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Spring Boot 3.5 REST API&lt;/li&gt;
&lt;li&gt;Angular 19 frontend connected to backend&lt;/li&gt;
&lt;li&gt;MySQL database with User table ready&lt;/li&gt;
&lt;li&gt;JWT Authentication working out of the box&lt;/li&gt;
&lt;li&gt;Spring Security configured&lt;/li&gt;
&lt;li&gt;Full CRUD operations&lt;/li&gt;
&lt;li&gt;Clean layered architecture (Controller → Service → Repository)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Tech Stack
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Backend:&lt;/strong&gt; Java 17, Spring Boot, Spring Security, JWT, JPA&lt;br&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; Angular 19, TypeScript&lt;br&gt;
&lt;strong&gt;Database:&lt;/strong&gt; MySQL&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;User registers via POST /api/users&lt;/li&gt;
&lt;li&gt;User logs in via POST /api/auth/login&lt;/li&gt;
&lt;li&gt;Backend returns JWT token&lt;/li&gt;
&lt;li&gt;Frontend stores token in localStorage&lt;/li&gt;
&lt;li&gt;All protected routes require valid token&lt;/li&gt;
&lt;li&gt;Invalid or missing token returns 401 Unauthorized&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;JWT configuration in Spring Security is confusing at first&lt;/li&gt;
&lt;li&gt;CORS needs to be configured in SecurityConfig not just main class&lt;/li&gt;
&lt;li&gt;Angular HttpClient needs provideHttpClient() in app.config.ts&lt;/li&gt;
&lt;li&gt;Service layer keeps code clean and testable&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  GitHub
&lt;/h2&gt;

&lt;p&gt;Full source code is available here:&lt;br&gt;
&lt;a href="https://github.com/shindebuilds/springboot-angular-starter-kit" rel="noopener noreferrer"&gt;https://github.com/shindebuilds/springboot-angular-starter-kit&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Feel free to clone it, use it, improve it.&lt;/p&gt;

&lt;p&gt;If you want the packaged version with setup instructions:&lt;br&gt;
&lt;a href="https://hanumant4.gumroad.com/l/caopgu" rel="noopener noreferrer"&gt;https://hanumant4.gumroad.com/l/caopgu&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy building!&lt;/p&gt;

</description>
      <category>java</category>
      <category>springboot</category>
      <category>angular</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
