<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Meriç Cana on Medium]]></title>
        <description><![CDATA[Stories by Meriç Cana on Medium]]></description>
        <link>https://medium.com/@mericcana?source=rss-3a64aecfa9a2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3_un7f8NsDt-qWAUDkqRlA.jpeg</url>
            <title>Stories by Meriç Cana on Medium</title>
            <link>https://medium.com/@mericcana?source=rss-3a64aecfa9a2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 12:30:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mericcana/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[KnowZone: Ortak Zevklere Göre Eşleşme + Sohbeti Başlatan Yapay Zeka]]></title>
            <link>https://medium.com/@mericcana/knowzone-ortak-zevklere-g%C3%B6re-e%C5%9Fle%C5%9Fme-sohbeti-ba%C5%9Flatan-yapay-zeka-231a39c48bdb?source=rss-3a64aecfa9a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/231a39c48bdb</guid>
            <category><![CDATA[skor-ve-benzerlik]]></category>
            <category><![CDATA[chat]]></category>
            <category><![CDATA[yapay-zeka-eşleştirme]]></category>
            <category><![CDATA[knowzone]]></category>
            <category><![CDATA[sohbet]]></category>
            <dc:creator><![CDATA[Meriç Cana]]></dc:creator>
            <pubDate>Thu, 14 Aug 2025 22:30:05 GMT</pubDate>
            <atom:updated>2025-08-25T23:02:46.350Z</atom:updated>
            <content:encoded><![CDATA[<p>Merhaba! Bir süredir aklımda dönen, “aynı kafadaki insanla denk gelsek de anlamsız bir giriş cümlesinde boğulmasak” diye başlayan fikir, KnowZone’a dönüştü. Bu yazıda hem fikrin çıkışını hem de uygulamanın mutfağını; backend’den mobil arayüze, semantik eşleştirmeden gizlilik akışına kadar kendi gözümden, pratik bir dille anlatacağım</p><h3>Neyi Çözmeye Çalışıyorum? 💡</h3><p>Bazı insanlar var: sizinle aynı şeylere kafa yoran, benzer zevklere sahip; ama karşılaşınca konuşma “nerelisin?” diye başlayıp sönüyor. Ben de dedim ki: <strong>eşleşmeyi sadece görsel değil, zihin ve ilgi ortaklığı üzerinden yapalım</strong>. Üstüne, eşleşince de <strong>sohbeti başlatacak anlamlı bir konu</strong> verelim</p><p><strong>Benim için işin özü burada başlıyor</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*iHbZDQWq5pvTWo0fFigMTw.png" /></figure><h3>Eşleşmenin 3 Sorusu ❓</h3><p>Uygulamayı açan kullanıcıya üç basit ama etkili soru soruyorum:</p><ol><li><strong>Seni en iyi tanımlayan 5 kelime nedir?</strong></li><li><strong>Hobilerin neler?</strong></li><li><strong>Birlikte vakit geçirmekten keyif alacağın biri nasıl olmalı?</strong></li></ol><p>Bu üç cevabı iki kullanıcı arasında çapraz karşılaştırıyorum. Kısaca mantık:</p><ul><li>Kullanıcı–1’in <strong>(1)</strong> cevabıyla, Kullanıcı–2’nin <strong>(3)</strong> cevabını</li><li>Kullanıcı–2’nin <strong>(1)</strong> cevabıyla, Kullanıcı–1’in <strong>(3)</strong> cevabını</li><li>Ve iki tarafın <strong>hobilerini</strong> (2) birbiriyle</li></ul><p>karşılaştırıp bir <strong>uyum skoru</strong> çıkartıyorum. <strong>Skor %30’un üstündeyse</strong> eşleşme adayı doğuyor</p><blockquote>Neden %30? Geçici olarak, alakasız eşleşmeleri elemeye yetiyor; ama potansiyeli olanları kaçırmıyor. Zamanla kurcalayıp iyileştireceğim</blockquote><h3>“Benzerlik” Nasıl Hesaplanıyor? 🔍</h3><p>Sorular metin. Yani kelimelerin arkasındaki <strong>anlamı</strong> yakalamam lazım. Bunun için küçük bir <strong>Python tabanlı semantik servis</strong> yazdım (KnowZone-SemanticAPI). Oraya şu işi yaptırıyorum:</p><ul><li>Cevap cümlelerini <strong>vektörlere</strong> göm</li><li>Aralarındaki <strong>anlam yakınlığını</strong> (cosine similarity) hesapla</li><li>Hobiler için hem <strong>birebir eşleme</strong> (“gitar” = “gitar”) hem de <strong>yakın kavramlar</strong> (“müzik” ≈ “gitar”) üzerinden pay puan ver</li></ul><p>Bu servis, backend’den bağımsız tutulduğu için ileride model/algoritma değiştirmek de çok daha kolay</p><h3>Skor Formulü (Kısaca) 📈</h3><p>Skor formülünü yazarken şunu hedefledim: iki kişinin birbirini nasıl gördüğü ve nasıl birini aradığı %80 ağırlıkta olsun, ortak hobiler ise %20 etkilesin. Kod tarafında bunu şöyle yaptım:</p><pre>double score1 = averageSimilarity(user1.getInterests(), user2.getIdealPersonTraits());<br>double score2 = averageSimilarity(user2.getInterests(), user1.getIdealPersonTraits());<br>double mainScore = (score1 + score2) / 2.0;  // %80 etki edecek kısım<br><br>double hobbyScore = averageSimilarity(user1.getHobbies(), user2.getHobbies());  // %20 etki edecek kısım<br><br>return (mainScore * 0.8 + hobbyScore * 0.2) * 100;</pre><p>Böylece iki tarafın kendini tanımlarken kullandığı kelimeler ve “ideal kişi” beklentileri eşleşmenin asıl belirleyicisi oluyor. Ortak hobiler de formüle ekleniyor ama ana faktör değil; %20&#39;lik bir katkı sağlıyor</p><h3>Eşleşme Oldu, Peki Sohbet Nasıl Başlıyor? 💬</h3><p>Birçok platformda ilk mesaj sıkıntı. KnowZone’da eşleşme oluştuğunda, <strong>yapay zeka ortak hobilere özel bir “konu başlatıcı”</strong> üretiyor. Örnek: “İkimiz de kamp seviyoruz, şehirden 2 saat uzak bir rota seçsen hangisi olur?”</p><ul><li>Bu konu başlığı <strong>eşleşme tablosuna</strong> işleniyor.</li><li>Kullanıcılar tarafında <strong>‘Kabul et / Reddet’</strong> akışı var.</li><li><strong>İki taraf da kabul ederse</strong> sohbet <strong>anında</strong> açılıyor.</li></ul><p>Sohbeti <strong>WebSocket</strong> ile gerçek zamanlı kurdum. Düşük gecikme ve mobilde stabil bağlantı için <strong>SockJS/STOMP</strong> destekliyorum. Mesajlar, bağlantı tekrar denemelerinde kaybolmuyor; server tarafında oturum-temelli doğrulama var</p><h3>Gizlilik İlk Tasarım Kararıydı 🛡️</h3><p>Bu proje benim için sadece “tanışma” değil, <strong>fikir kalitesi</strong> ve <strong>keyifli sohbet</strong></p><ul><li>Eşleşme sonrası <strong>anonim başlıyoruz</strong>. Kimlikler gizli</li><li>Sohbet akarken iki taraf <strong>“görünür ol”</strong> için <strong>iki ayrı onay</strong> veriyor</li><li><strong>İki onay da gelirse</strong> profiller açılıyor. Gelmezse sohbet anonim kalmaya devam ediyor</li></ul><p>Bence bu, “önce fikir” kültürü için kritik</p><h3>Gruplar 🤝</h3><p>Uygulamanın bir de grup sohbetleri kısmı var. Backend tarafında çalışan bir schedule mekanizmasıyla, sistem belirli şehirlerde ve bölgelerde otomatik olarak gruplar açıyor. Konular tamamen uygulamanın algoritması tarafından belirleniyor: örneğin “Osmanlı ve Balkan Krizleri” ya da “2. Dünya Savaşı’nda Türkiye’nin tutumu” gibi. Bu gruplar, ilgili bölgede bulunan kullanıcılara gösteriliyor ve isteyen katılabiliyor</p><ul><li><strong>Konuya göre kelime üretimi : </strong>Yapay zekâ belirli başlıklara uygun yaklaşık 100 kelime üretiyor ardından uygulama sohbet sırasında bu kelimelerin kullanımını takip ediyor</li><li><strong>Ne zaman aktif?</strong> Gruplar belirli saatler arasında açık oluyor — mesela 20:00 ile 22:00 arası — ve bu saat aralıkları da otomatik algoritma tarafından seçiliyor</li><li><strong>Amaç ne?</strong> Kullanıcılar sadece birebir eşleşmelerde değil, aynı zamanda ortak ilgi alanlarında da bir araya gelebiliyor</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7LBxKHaLfvzFKC_vO7kRtA.jpeg" /></figure><h3>Yol Haritası 🗺️</h3><ul><li>🛡️ <strong>Güven &amp; güvenlik</strong> (küfür/nefret filtresi, raporlama, ban akışları)</li><li>🧵 <strong>Sohbet iyileştirmeleri</strong> (mesaj silme, okundu bilgisi, yazıyor… durumu)</li><li>🧪 <strong>Skor optimizasyonu</strong> (eşik, ağırlıklar, metrikler)</li></ul><h3>Mimari — Kısa Kısa 🏛️</h3><p><strong><em>Backend (KnowZone)</em></strong></p><blockquote><strong>Java / Spring</strong> ile yazıldı (Maven projesi)</blockquote><blockquote>Eşleştirme akışları, match durumu yönetimi ve WebSocket kanalları burada</blockquote><blockquote>Uyumluluk skoru için Python servisine <strong>HTTP çağrıları</strong> atıyor</blockquote><blockquote>Eşleşme, konu başlatıcı ve kullanıcı kararları <strong>kalıcı</strong> tutuluyor</blockquote><p><strong><em>Semantik Servis (KnowZone-SemanticAPI)</em></strong></p><blockquote><strong>Python</strong> (tek dosyalık bir servis: app.py)</blockquote><blockquote>Metinleri sayılara çevirip <strong>anlam benzerliğini</strong> döndürür</blockquote><blockquote>Hobilerde hem birebir eşleşme, hem de yakın kavramlara puan</blockquote><p><strong><em>Mobil (KnowZone-Mobile)</em></strong></p><blockquote><strong>React Native (Expo + TypeScript)</strong>.</blockquote><blockquote>Dosya yapısı modüler: app/, components/, stores/, styles/…</blockquote><blockquote><strong>NativeWind/Tailwind</strong> ile hızlı stil üretimi.</blockquote><blockquote>WebSocket ile gerçek zamanlı mesajlaşma, eşleşme akışları ve onay ekranları.</blockquote><h3>Kaynak Kodlar</h3><blockquote><strong>Backend:</strong> <a href="http://github.com/Canaxs/KnowZone">github.com/Canaxs/KnowZone</a></blockquote><blockquote><strong>Mobil:</strong> <a href="http://github.com/Canaxs/KnowZone-Mobile">github.com/Canaxs/KnowZone-Mobile</a></blockquote><blockquote><strong>Semantic API:</strong> <a href="http://github.com/Canaxs/KnowZone-SemanticAPI">github.com/Canaxs/KnowZone-SemanticAPI</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=231a39c48bdb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CI/CD with Jenkins + Docker + Spring]]></title>
            <link>https://medium.com/@mericcana/ci-cd-with-jenkins-docker-spring-bee52202c92f?source=rss-3a64aecfa9a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/bee52202c92f</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[spring]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[cicd]]></category>
            <dc:creator><![CDATA[Meriç Cana]]></dc:creator>
            <pubDate>Tue, 01 Oct 2024 00:30:21 GMT</pubDate>
            <atom:updated>2024-10-01T11:45:12.858Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*IJvAE1Kmdup_KB6817APyQ.png" /></figure><p>Hello everyone, Today I will talk about how we can automate the <strong><em>build, test</em></strong> and <strong><em>deployment</em></strong> of a Spring Boot application with the<strong><em> automation </em></strong>tool Jenkins, which is an alternative for <strong><em>CI/CD</em></strong> processes.</p><p>First of all, we need to create a docker-compose file, using the Jenkins image, we will stand up the application with the <em>‘ docker compose up ’</em> command, but a small problem arises here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*KuxpaNnYkFRMhyDF-cb0sg.png" /><figcaption>jenkins/jenkins</figcaption></figure><p>When we use the Jenkins image currently available at Hub Docker, we encounter a ‘docker: not found’ error within the platform. Although I installed docker plugins in the platform, there is no solution to this problem, so I resorted to the following alternative solution.</p><p>Based on the <strong><em>Jenkins</em></strong> image, I created my own image with <strong><em>Dockerfile</em></strong> and installed the <em>‘ Docker-ce-cli ’ </em>package in the image. In this way, I prevented an error from occurring in any Docker command we use within the <strong><em>Jenkins</em></strong> platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*19Bc9aZsjINeTWycj9MtAA.jpeg" /><figcaption>canaxs/dockerimages</figcaption></figure><blockquote><a href="https://github.com/Canaxs/docker-spring-jenkins">GitHub</a> Address of the Application : <a href="https://github.com/Canaxs/docker-spring-jenkins">Docker-Spring-Jenkins</a></blockquote><p>1 → We go to the folder where the file is located with the command line and run the command <strong><em>‘ docker build -t [imageName] . ’</em></strong></p><p>We can check whether our image is created with the <strong><em>‘ docker images ’</em></strong> command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*r32SdCp4Xh2uZ3U2BjyKNQ.png" /><figcaption>docker images</figcaption></figure><p>2 → We go to the home directory of our <strong><em>Spring</em></strong> application and create a <strong><em>docker-compose</em></strong> file. Then we run the <strong><em>‘ docker compose up -d ’</em></strong> command by giving the image we created into it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*Bx5rWHM8CyeNYeDfp9o0tw.jpeg" /><figcaption>docker-compose</figcaption></figure><p>If you are performing these operations on a remote server, if you do not want your data to be deleted when the container is restarted or stopped, you can create a special folder <strong><em>‘ $Directory:/var/jenkins_home ’</em></strong> volumes . In this way, the data you create in the application will also be saved in the folder on the server.</p><p>3 → After standing up the container, we check it with the <strong><em>‘ docker container ls ’</em></strong> command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KXIb3YLuIcLKW2wVlrOZ6Q.png" /><figcaption>docker container ls</figcaption></figure><p>Container is running successfully, now we can go to <strong><em>Jenkins </em></strong>installation screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*La2VXnP10zDlyPVFukNBQg.jpeg" /></figure><p>Since I perform the operations on my local computer, I go to localhost:8080.</p><p>4 → Run the command<strong><em> ‘ docker logs -f [container_name] ’</em></strong> to access the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WhkXipOnjP0Qz2fS4-lfeQ.png" /></figure><p>5 → Copy and paste the <strong><em>password </em></strong>in yellow colour and continue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FNO_Wq8IIUuP_ySPSteQpg.jpeg" /><figcaption>customize Jenkins</figcaption></figure><p>6 → Then we select the <strong><em>Install Suggested plugins</em></strong> option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tVvTdAw0PlEe-A08_e56fA.jpeg" /><figcaption>Getting Started</figcaption></figure><p>At this stage we expect that the installation will do.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BcAWuAm349bAWQ5xktmXGg.jpeg" /><figcaption>create admin user</figcaption></figure><p>7 → Then we enter our account details and register.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*1IEACNRIru6tXYGGEAFU_g.jpeg" /><figcaption>instance configuration</figcaption></figure><p>8 → We decide at which URL the Jenkins application will run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5lZ3BicZqO6No9CEdR8zcQ.jpeg" /><figcaption>dashboard</figcaption></figure><p>9 → Process is done, we will install the plugins we will use next.</p><p>10 → Manage Jenkins → Add-ons → Add-ons that can be installed, install the following add-ons and restart the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6CLTlAwZXn40C4RmUBPKZQ.jpeg" /><figcaption>Plugins</figcaption></figure><p>Before creating our <strong><em>Jenkins</em></strong> Project, we need to create a <strong><em>Dockerfile</em></strong> for our <strong><em>Spring Boot</em></strong> application. The <strong><em>Dockerfile</em></strong> we will create will download the dependencies of the application when our file is triggered and turn it into <strong><em>Jar</em></strong>, then run our application by copying it under the <strong><em>/app</em></strong> directory it creates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*n15h8CIhDh41BWY9TcRMVg.jpeg" /><figcaption>Dockerfile</figcaption></figure><p>The important point here is that you need to find the <strong><em>JDK </em></strong>image suitable for your <strong><em>Maven </em></strong>and <strong><em>Java </em></strong>version and apply it. Now that we have created the <strong><em>Dockerfile</em></strong>, we can move on to Jenkins.</p><p>11 → Control centre → New Item → Freestyle Project</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*V_WhgaxavbsFaNXwHTPNXA.jpeg" /><figcaption>Free Style Project</figcaption></figure><p>12 → Then we complete the GitHub configurations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6qxsm9aYjiofWkxBP1_WFQ.jpeg" /><figcaption>Source Code Management</figcaption></figure><p>13 → Among the plugins we installed, there was a plugin called <strong><em>Generic WebHook Trigger</em></strong>. This plugin allows our project we created in <strong><em>Jenkins </em></strong>to be triggered when we perform our commit operations. If you want to use it, you can select the box in the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*OxoA33GvraoyOrfCuHKCXQ.png" /><figcaption>Triggers</figcaption></figure><p>14 → Then we select the option Add Configuration Step → Run Shell.</p><p>15 → <em>‘ docker build — rm -t [buildName] . ’</em></p><p>16 → <em>‘ docker run — rm -d -p [Port:Port] — name [tagName] [buildName] ’</em></p><p>We write the above <strong><em>Commands</em></strong>, say <strong><em>apply </em></strong>and <strong><em>save</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*496xHjyp1RE57KVjD2Debg.png" /><figcaption>Run Shell</figcaption></figure><p>17 → From the project page, click on the <strong><em>‘ Configure now ’</em></strong> button and follow the Configuration from the build tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*VtxjYWp7WFg3mADI_dFzxw.png" /><figcaption>Builds</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UFiA04SYzE51J6mqsSGbTw.jpeg" /><figcaption>Console output</figcaption></figure><p>The process is OK, but if we want the Jenkins configuration to be triggered after our <strong><em>Commit </em></strong>process, there is only one operation left to do.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UN_JV66KhH42XvlDb3EtJA.png" /><figcaption>github.com/[username]/[projectName]/settings/hooks</figcaption></figure><p>18 → Add webhook → Add payload URL and save.</p><blockquote><a href="https://github.com/Canaxs/docker-spring-jenkins">GitHub</a> Address of the Application : <a href="https://github.com/Canaxs/docker-spring-jenkins">Docker-Spring-Jenkins</a></blockquote><blockquote>OpenJdk Version → <em>openjdk:8 , openjdk:11, openjdk:17-oracle , openjdk:17-slim , openjdk:17</em></blockquote><blockquote>Java Version : <em>17</em></blockquote><blockquote>Spring Boot Version: <em>3.3.4</em></blockquote><blockquote><em>Social Media</em></blockquote><blockquote>GitHub → <a href="https://github.com/Canaxs"><em>github.com/Canaxs</em></a></blockquote><blockquote>Linkedin → <a href="https://www.linkedin.com/in/mericcana/"><em>linkedin.com/in/mericcana/</em></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bee52202c92f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jenkins + Docker + Spring ile CI/CD]]></title>
            <link>https://medium.com/@mericcana/jenkins-docker-spring-ile-ci-cd-d33fe690aa3d?source=rss-3a64aecfa9a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/d33fe690aa3d</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[spring]]></category>
            <category><![CDATA[cicd]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[jenkins]]></category>
            <dc:creator><![CDATA[Meriç Cana]]></dc:creator>
            <pubDate>Tue, 01 Oct 2024 00:14:17 GMT</pubDate>
            <atom:updated>2024-10-01T11:43:37.439Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*IJvAE1Kmdup_KB6817APyQ.png" /></figure><p>Herkese merhaba , Bugün sizlere CI/CD süreçleri için bir alternatif olan , otomasyon aracı Jenkins ile Bir Spring Boot uygulamasının <strong>build</strong>,<strong> test </strong>ve <strong>deploy</strong> gibi işlemlerini<strong> </strong>nasıl <strong>otomatize </strong>edebiliriz bundan bahsedeceğim.</p><p>Öncelikle bir docker-compose dosyası oluşturmamız gerekiyor , Jenkins imajını kullanarak , uygulamayı <em>‘ docker compose up ’</em> komutu ile ayağa kaldıracağız fakat burada ufak bir problem ortaya çıkıyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*KuxpaNnYkFRMhyDF-cb0sg.png" /><figcaption>jenkins/jenkins</figcaption></figure><p>Halihazırda <a href="https://hub.docker.com/r/jenkins/jenkins">Hub Docker</a> adresinde bulunan Jenkins imajını kullandığımız zaman platform içerisinde ‘ <strong><em>docker: not found</em></strong> ’ hatası ile karşılaşıyoruz. Platform içerisine docker eklentilerini kurmama rağmen bu soruna çözüm olmadığı için bende şu alternatif çözüm yoluna başvurdum.</p><p>Jenkins imajını esas alarak <strong>Dockerfile </strong>ile kendi imajımı yarattım.İmaj içerisine de ‘ <em>Docker-ce-cli ’</em> paketini kurdum. Bu sayede <strong>Jenkins </strong>platformu içerisinde kullandığımız herhangi bir <strong>Docker</strong> komutunda hata meydana gelmesini engellemiş oldum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*19Bc9aZsjINeTWycj9MtAA.jpeg" /><figcaption>canaxs/dockerimages</figcaption></figure><blockquote>Uygulamanın <a href="https://github.com/Canaxs/docker-spring-jenkins">GitHub</a> Adresi : <a href="https://github.com/Canaxs/docker-spring-jenkins">Docker-Spring-Jenkins</a></blockquote><p>1 → Komut satırı ile dosyanın bulunduğu klasöre giderek ‘ <strong><em>docker build -t [imageName] .</em></strong><em>’ </em>komutunu çalıştırıyoruz<em>.</em></p><p>Bu sayede imajımızı oluşturmuş oluyoruz. ‘ docker images ‘ komutu ile imajımızın oluşup oluşmadığını kontrol edebiliriz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*r32SdCp4Xh2uZ3U2BjyKNQ.png" /><figcaption>docker images</figcaption></figure><p>2 → Spring uygulamamızın ana dizinine gidiyoruz ve docker-compose dosyası oluşturuyoruz. Ardından yarattığımız imajı içerisine vererek ‘<strong><em>docker compose up -d ‘ </em></strong>komutunu çalıştırıyoruz</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*Bx5rWHM8CyeNYeDfp9o0tw.jpeg" /><figcaption>docker-compose</figcaption></figure><p>Eğer bu işlemleri uzak bir sunucuda gerçekleştiriyorsanız container , restart veya stop edildiğinde verilerinizin silinmesini istemiyorsanız özel bir klasör oluşturarak ‘ <strong><em>$Directory:/var/jenkins_home </em></strong>’ volumes ’u oluşturabilirsiniz. Bu sayede uygulama içerisinde oluşturduğunuz veriler aynı zamanda sunucu içerisindeki klasörde kayıt altında tutulacaktır.</p><p>3 → Container’ı ayağa kaldırdıktan sonra <strong><em>‘ docker container ls ’</em></strong> komutu ile kontrol ediyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KXIb3YLuIcLKW2wVlrOZ6Q.png" /><figcaption>docker container ls</figcaption></figure><p>Container başarılı şekilde çalışıyor şimdi <strong><em>Jenkins’ in</em></strong> kurulum ekranına gidebiliriz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*La2VXnP10zDlyPVFukNBQg.jpeg" /></figure><p>Ben işlemleri local bilgisayarımda gerçekleştirdiğim için localhost:8080 adresine gidiyorum.</p><p>4 → Password’a ulaşmak için <strong><em>‘ docker logs -f [container_name] ‘ </em></strong>komutunu çalıştırıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WhkXipOnjP0Qz2fS4-lfeQ.png" /></figure><p>5 → Sarı renkte ki password’u kopyalayıp yapıştıralım ve devam edelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FNO_Wq8IIUuP_ySPSteQpg.jpeg" /><figcaption>customize Jenkins</figcaption></figure><p>6 → Ardından <strong>Install Suggested plugins</strong> seçeneğini seçiyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tVvTdAw0PlEe-A08_e56fA.jpeg" /><figcaption>Getting Started</figcaption></figure><p>Bu aşamada kurulum yapacaktır bekliyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BcAWuAm349bAWQ5xktmXGg.jpeg" /><figcaption>create admin user</figcaption></figure><p>7 → Ardından hesap bilgilerimizi giriyoruz ve kayıt oluyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*1IEACNRIru6tXYGGEAFU_g.jpeg" /><figcaption>instance configuration</figcaption></figure><p>8 → Jenkins uygulamasının hangi URL’de çalışacağına karar veriyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5lZ3BicZqO6No9CEdR8zcQ.jpeg" /><figcaption>dashboard</figcaption></figure><p>9 → İşlem tamam sırada kullanacağımız eklentileri kuracağız.</p><p>10 → Jenkins’i Yönet → Eklentiler → Yüklenebilecek Eklentiler adresine giderek aşağıdaki eklentileri kuruyoruz ve uygulamayı yeniden başlatıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6CLTlAwZXn40C4RmUBPKZQ.jpeg" /><figcaption>Plugins</figcaption></figure><p><strong><em>Jenkins </em></strong>Projemizi oluşturmadan önce <strong><em>Spring Boot</em></strong> uygulamamız için bir <strong><em>Dockerfile</em></strong> oluşturmamız gerekiyor. Oluşturacağımız <strong><em>Dockerfile , </em></strong>dosyamız tetiklendiğinde uygulamanın bağımlılıklarını indirecek ve <strong>Jar</strong> haline getirecektir , ardından oluşturduğu /app dizini altına kopyalayarak uygulamamızı çalıştıracaktır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*n15h8CIhDh41BWY9TcRMVg.jpeg" /><figcaption>Dockerfile</figcaption></figure><p>Burada önemli olan husus <strong>Maven</strong> ve <strong>Java</strong> versiyonunuza uygun <strong>JDK</strong> imajı bulmanız ve onu uygulamanız gerekiyor. <strong><em>Dockerfile’ı</em></strong> oluşturduğumuza göre <strong><em>Jenkins’e</em></strong> geçebiliriz.</p><p>11 → Kontrol merkezi → Yeni Öğe → Serbest Stil Proje yolunu izliyoruz</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*V_WhgaxavbsFaNXwHTPNXA.jpeg" /><figcaption>Free Style Project</figcaption></figure><p>12 → Ardından GitHub konfigurasyonları’nı tamamlıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6qxsm9aYjiofWkxBP1_WFQ.jpeg" /><figcaption>Kaynak Kodu Yönetimi</figcaption></figure><p>13 → Yüklediğimiz eklentiler arasında <strong><em>Generic WebHook Trigger</em></strong> adında bir eklenti vardı. Bu eklenti commit işlemlerimizi gerçekleştirdiğimiz zaman <strong><em>Jenkins’te</em></strong> oluşturduğumuz projemizin tetiklenmesine olanak sağlıyor. Eğer kullanmak istiyorsanız görseldeki kutucuğu seçebilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*OxoA33GvraoyOrfCuHKCXQ.png" /><figcaption>Tetikleyiciler</figcaption></figure><p>14 → Ardından Yapılandırma Adımı ekle → Shell Çalıştır seçeneğini seçiyoruz.</p><p>15 → <em>‘ docker build — rm -t [buildName] . ’</em></p><p>16 → <em>‘ docker run — rm -d -p [Port:Port] — name [tagName] [buildName] ’</em></p><p>Yukarıdaki Komutları yazıyoruz , <strong><em>uygula</em></strong> diyoruz ve <strong><em>kaydediyoruz</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*496xHjyp1RE57KVjD2Debg.png" /><figcaption>Shell Çalıştır</figcaption></figure><p>17 → Proje sayfasından ‘ Ş<strong><em>imdi yapılandır </em></strong>’ butonuna tıklıyoruz ve build sekmesinden Yapılandırmayı takip ediyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*VtxjYWp7WFg3mADI_dFzxw.png" /><figcaption>Builds</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UFiA04SYzE51J6mqsSGbTw.jpeg" /><figcaption>Konsol Çıktısı</figcaption></figure><p>İşlem tamam fakat C<strong><em>ommit</em></strong> işlemimizin ardından <strong><em>Jenkins</em></strong> yapılandırmasının tetiklenmesini istiyorsak yapacağımız tek bir <strong><em>işlem</em></strong> kalıyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UN_JV66KhH42XvlDb3EtJA.png" /><figcaption>github.com/[username]/[projectName]/settings/hooks</figcaption></figure><p>18 → Add webhook → Payload URL ekliyoruz ve kaydediyoruz.</p><blockquote>Uygulamanın <a href="https://github.com/Canaxs/docker-spring-jenkins">GitHub</a> Adresi : <a href="https://github.com/Canaxs/docker-spring-jenkins">Docker-Spring-Jenkins</a></blockquote><blockquote>OpenJdk Versiyonları → <em>openjdk:8 , openjdk:11, openjdk:17-oracle , openjdk:17-slim , openjdk:17</em></blockquote><blockquote>Java Version : <em>17</em></blockquote><blockquote>Spring Boot Version: <em>3.3.4</em></blockquote><blockquote><em>Sosyal Medya</em></blockquote><blockquote>GitHub → <a href="https://github.com/Canaxs"><em>github.com/Canaxs</em></a></blockquote><blockquote>Linkedin → <a href="https://www.linkedin.com/in/mericcana/"><em>linkedin.com/in/mericcana/</em></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d33fe690aa3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Soylenti - News Site]]></title>
            <link>https://medium.com/@mericcana/soylenti-news-site-9ea142ea9845?source=rss-3a64aecfa9a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ea142ea9845</guid>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[spring]]></category>
            <category><![CDATA[tailwind]]></category>
            <category><![CDATA[shadcn-ui]]></category>
            <dc:creator><![CDATA[Meriç Cana]]></dc:creator>
            <pubDate>Tue, 10 Sep 2024 21:35:14 GMT</pubDate>
            <atom:updated>2025-05-26T11:41:39.654Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*02klCn6xjfE6M9SaHGUuUw.png" /></figure><p><strong>Hello everyone!</strong><br>In this article, I’d like to introduce you to a project I’ve been working on for quite some time: <a href="http://xn--sylenti-90a.com/"><strong>Söylenti — The News Platform</strong>.</a></p><p>The application offers the following features to its users</p><ul><li>You can create <strong>rumor-based news</strong>, provided that you specify the source.</li><li>You will be able to <strong>earn revenue based on the number of views</strong> your posts receive. <em>(This feature will be activated in the future.)</em></li><li>You can <strong>like</strong> and <strong>comment</strong> on posts.</li><li>Each user’s <strong>score</strong> within the app is calculated based on the <strong>number of views and likes</strong> their posts receive.These scores not only increase a user’s <strong>popularity</strong>, but also help their content get more <strong>visibility</strong> across the platform.</li><li>The news you create is <strong>published after being approved by a moderator</strong>.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F9qz9SZQ84rY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9qz9SZQ84rY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F9qz9SZQ84rY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9bdcd07408ed171e5a1e71fdb8f598de/href">https://medium.com/media/9bdcd07408ed171e5a1e71fdb8f598de/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*kSANoqVOKhx2Fdvu9CMgNQ.png" /><figcaption>söylenti.com/account</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Av7FkAKexT2w8RSd28zyg.png" /><figcaption>söylenti.com/user/[username]</figcaption></figure><p>This application stands out from similar platforms with several unique features.</p><ul><li>For example, in the world of football, numerous rumor-based news pieces begin circulating before an official player transfer takes place. In such cases, <strong>Söylenti — News Platform</strong> steps in. Users or sports commentators can share these kinds of rumors in more detail, as long as they cite a source. This allows for the creation of <strong>reliable and discussion-friendly content</strong> before the news becomes official.</li><li>The platform not only offers content creators a <strong>more open and flexible environment</strong> to share information but also provides the opportunity to <strong>earn revenue</strong> based on the number of views their posts receive — a feature that will be implemented in the near future.</li><li>As for the platform’s revenue model, during the initial phase, income will be generated through <strong>advertising spaces</strong> created within the application.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q4Yn5jaCxi0QZeKz__F97g.png" /><figcaption>söylenti.com</figcaption></figure><p>Scenarios to Be Implemented in the Application</p><ul><li><strong>Comment system development:</strong><br>Comment sections and database tables have already been created. Remaining actions will be completed soon, and the comment system will become fully functional. ✔</li><li><strong>AI-assisted content moderation:</strong><br>Currently, posts need to be approved by moderators before being published. This process will be revised: the initial content check will be handled by <strong>AI</strong>, eliminating the need to wait for manual moderator approval. ⌛</li><li><strong>User interaction features:</strong><br>A messaging system will be introduced, allowing users to communicate with each other. Additionally, users will be able to create groups and engage in discussions about news topics. This aims to strengthen the community aspect of the platform. ⌛</li><li><strong>Advanced search and filtering system:</strong><br>A filtering and search mechanism has been implemented using the <strong>Specification interface</strong>, enabling users to find content more efficiently and quickly. ✔</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GvXq3dWhRX9bmDF375KdRA.png" /><figcaption>söylenti.com/panel/dashboard</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zt7Yj2p_EAh1OQ8ZNZVUkg.png" /><figcaption>söylenti.com/login</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tvnxo3z8vshgObMc2DSR_Q.png" /><figcaption>söylenti.com/soylenti/yazarlar</figcaption></figure><p>Technologies Used:</p><ul><li>UI : NextJS , TailwindCSS , ShadcnUI , Typescript , Redux , EsLint , React-Icons</li><li>Core : Spring-Boot , JWT , Lombok , Spring Starter Pack , MySQL</li><li>Domain: <a href="https://www.godaddy.com/">godaddy.com</a></li><li>UI Hosting : <a href="https://vercel.com/">vercel.com</a></li><li>Core Hosting : <a href="https://railway.app/">railway.app</a></li></ul><blockquote><em>Core:</em><a href="http://github.com/Canaxs/whisper-core"><em> github.com/Canaxs</em>/whisper-core</a></blockquote><blockquote>Web Sitesi: <a href="http://www.xn--sylenti-90a.com/">söylenti.com</a></blockquote><blockquote><em>UI: </em><a href="http://github.com/Canaxs/whisper-ui"><em>github.com/Canaxs/</em>whisper-ui</a></blockquote><blockquote>Spring Boot Version: 3.3.1</blockquote><blockquote>Java Version: 17</blockquote><blockquote><em>Sosyal Medya Adreslerim</em></blockquote><blockquote><em>Github → </em><a href="https://github.com/Canaxs"><em>github.com/Canaxs</em></a></blockquote><blockquote><em>Linkedin → </em><a href="https://www.linkedin.com/in/mericcana/"><em>linkedin.com/in/mericcana/</em></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ea142ea9845" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Söylenti - Haber Sitesi]]></title>
            <link>https://medium.com/@mericcana/s%C3%B6ylenti-haber-sitesi-9f3cea065002?source=rss-3a64aecfa9a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f3cea065002</guid>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[tailwind]]></category>
            <category><![CDATA[spring]]></category>
            <category><![CDATA[news]]></category>
            <dc:creator><![CDATA[Meriç Cana]]></dc:creator>
            <pubDate>Mon, 09 Sep 2024 16:37:49 GMT</pubDate>
            <atom:updated>2025-05-26T11:37:43.702Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*02klCn6xjfE6M9SaHGUuUw.png" /></figure><p><strong>Herkese merhaba!</strong><br> Bu yazımda sizlere uzun süredir üzerinde çalıştığım bir proje olan <a href="http://xn--sylenti-90a.com/"><strong>Söylenti — Haber Sitesi</strong></a>’nden bahsetmek istiyorum.</p><p>Bu uygulama, kullanıcılarına çeşitli etkileşim ve içerik üretme imkanları sunuyor:</p><ul><li><strong>Kaynak belirtmek şartıyla</strong> kendi söylenti haberlerinizi oluşturabiliyorsunuz.</li><li><strong>İlerleyen dönemlerde aktif olacak bir özellikle</strong>, paylaşımlarınızın görüntülenme sayısına bağlı olarak gelir elde etmeniz mümkün olacak.</li><li>Gönderileri <strong>beğenebilir</strong> ve <strong>yorum yaparak</strong> diğer kullanıcılarla etkileşim kurabilirsiniz.</li><li>Kullanıcıların uygulama içerisindeki <strong>puanları</strong>, yaptıkları paylaşımların görüntülenme ve beğeni sayılarına göre belirleniyor. Bu puanlar, hem kullanıcının <strong>popülerliğini artırıyor</strong> hem de içeriklerinin <strong>ön plana çıkmasını sağlıyor</strong>.</li><li>Uygama içinde yer alan <strong>“Söyleşi Alanı”</strong> bölümünde, gündemdeki haberler üzerine fikir alışverişinde bulunabilirsiniz.</li><li>Yayınladığınız haber içerikleri, <strong>moderasyon sürecinden geçtikten sonra</strong> platformda yayımlanıyor.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F9qz9SZQ84rY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9qz9SZQ84rY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F9qz9SZQ84rY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9bdcd07408ed171e5a1e71fdb8f598de/href">https://medium.com/media/9bdcd07408ed171e5a1e71fdb8f598de/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FWe1GDLo_Zz0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DWe1GDLo_Zz0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FWe1GDLo_Zz0%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c56f81e7cccff15a1ad210c4c73d7978/href">https://medium.com/media/c56f81e7cccff15a1ad210c4c73d7978/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kSANoqVOKhx2Fdvu9CMgNQ.png" /><figcaption>söylenti.com/account</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Av7FkAKexT2w8RSd28zyg.png" /><figcaption>söylenti.com/user/[username]</figcaption></figure><p>Bu uygulamayı benzer platformlardan ayıran bazı özgün özellikler bulunuyor.</p><ul><li>Örneğin, futbol dünyasında bir transfer gerçekleşmeden önce oyuncu hakkında pek çok <strong>söylenti haber</strong> dolaşmaya başlar. İşte tam da bu gibi durumlarda, <strong>Söylenti — Haber Sitesi</strong> devreye giriyor. Kullanıcılar ya da spor yorumcuları, duydukları bu tarz söylentileri, <strong>kaynak belirterek</strong> daha detaylı bir şekilde paylaşabiliyor. Bu sayede, haber henüz resmiyete dökülmeden önce, güvenilir ve tartışmaya açık bir içerik üretim süreci sağlanıyor.</li><li>Uygulama, içerik üreticilerine yalnızca daha <strong>özgür bir paylaşım ortamı</strong> sunmakla kalmıyor, aynı zamanda ilerleyen süreçte içeriklerinin görüntülenme sayısına bağlı olarak <strong>kazanç elde etme</strong> imkânı da tanıyor.</li><li>Platformun gelir modeli ise başlangıç aşamasında, uygulama içinde oluşturduğum <strong>reklam alanları üzerinden</strong> sağlanacak.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q4Yn5jaCxi0QZeKz__F97g.png" /><figcaption>söylenti.com</figcaption></figure><p>Uygulama İçerisine Eklenecek Senaryolar</p><ul><li><strong>Yorum sistemi geliştirmesi:</strong><br>Yorum alanları ve tablolar oluşturulmuş durumda. Geriye kalan eksik aksiyonlar da tamamlanarak yorum sistemi tam işlevsel hale getirilecektir. ✔</li><li><strong>Yayın sürecinde yapay zeka destekli moderasyon:</strong><br>Şu anki yapı, paylaşımların yayımlanabilmesi için moderatör onayı gerektirmektedir. Ancak bu süreçte değişikliğe gidilerek, ilk kontrolün <strong>yapay zeka tarafından gerçekleştirilmesi</strong> planlanmaktadır. Böylece içerikler, moderatör onayı beklemeksizin daha hızlı bir şekilde yayına alınabilecektir. ⌛</li><li><strong>Kullanıcılar arası etkileşim:</strong><br>Kullanıcıların birbirleriyle mesajlaşabilecekleri ve grup oluşturup haberler hakkında tartışabilecekleri bir ortam oluşturulacaktır. Bu, platformun topluluk yapısını güçlendirmeyi hedeflemektedir. ⌛</li><li><strong>Gelişmiş arama ve filtreleme sistemi:</strong><br><strong>Specification arayüzü</strong> üzerinden bir filtreleme ve arama mekanizması oluşturulmuştur. Bu sayede kullanıcılar içerikler arasında daha hızlı ve etkili bir şekilde arama yapabilecektir. ✔</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GvXq3dWhRX9bmDF375KdRA.png" /><figcaption>söylenti.com/panel/dashboard</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zt7Yj2p_EAh1OQ8ZNZVUkg.png" /><figcaption>söylenti.com/login</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tvnxo3z8vshgObMc2DSR_Q.png" /><figcaption>söylenti.com/soylenti/yazarlar</figcaption></figure><p>Kullanılan Teknolojiler:</p><ul><li>Kullanıcı Arayüzü : NextJS , TailwindCSS , ShadcnUI , Typescript , Redux , EsLint , React-Icons</li><li>Core : Spring-Boot, JWT, Lombok, Spring Başlangıç ​​Paketi, MySQL</li><li>Alan adı: <a href="https://www.godaddy.com/">godaddy.com</a></li><li>UI Hosting : <a href="https://vercel.com/">vercel.com</a></li><li>Core Hosting : <a href="https://railway.app/">railway.app</a></li></ul><blockquote>Çekirdek: <a href="http://github.com/Canaxs/whisper-core">github.com/Canaxs /whisper-core</a></blockquote><blockquote>Web Sitesi: <a href="http://www.xn--sylenti-90a.com/">söylenti.com</a></blockquote><blockquote><a href="http://github.com/Canaxs/whisper-ui">Kullanıcı arayüzü </a><em>: </em><a href="http://github.com/Canaxs/whisper-ui">github.com/Canaxs/whisper-ui</a></blockquote><blockquote>Spring Boot Sürümü: 3.3.1</blockquote><blockquote>Java Sürümü: 17</blockquote><blockquote><em>Sosyal Medya Adreslerim</em></blockquote><blockquote><em>Github → </em><a href="https://github.com/Canaxs"><em>github.com/Canaxs</em></a></blockquote><blockquote><em>Linkedin → </em><a href="https://www.linkedin.com/in/mericcana/"><em>linkedin.com/in/mericcana/</em></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f3cea065002" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spring Printing App]]></title>
            <link>https://medium.com/@mericcana/spring-printing-uygulamas%C4%B1-9c8152f77051?source=rss-3a64aecfa9a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c8152f77051</guid>
            <category><![CDATA[spring]]></category>
            <category><![CDATA[html-to-pdf]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[pdf]]></category>
            <dc:creator><![CDATA[Meriç Cana]]></dc:creator>
            <pubDate>Fri, 31 May 2024 14:02:36 GMT</pubDate>
            <atom:updated>2024-05-31T14:02:47.315Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*fmvLIvwJPfGDrSoQ.png" /><figcaption>Portable Document Format</figcaption></figure><p>Hello everyone, I am sharing with you my Printing application that I have been working on for a while. Now I will give you information about what this application does and how it is used.</p><p>The application works briefly as follows. It fills the receipt or invoice templates saved in the application in accordance with the parameters we specify from the outside and enables them to be reflected to the user as PDF. In short, by uploading the invoice or receipt template you have prepared yourself into the application, you can get your printing in accordance with that template.</p><p>All you need to do is read the Valid Parameters file under the resources folder and specify the fields you want to be filled in as ID in your html code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Iyh_Zv59XofEaqJs.png" /><figcaption>Template: fatura_0</figcaption></figure><p>In the video below, I have shown how you can upload templates into the application and how you can print on these templates.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FLRL118hplR0%3Fstart%3D5%26feature%3Doembed%26start%3D5&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DLRL118hplR0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FLRL118hplR0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b6649bc1c24e79eef10dce2c61eff0b6/href">https://medium.com/media/b6649bc1c24e79eef10dce2c61eff0b6/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*D4hMjxW_O3SdAwB5.png" /><figcaption><a href="http://localhost:4200/upload#file">spring-printing/upload#file</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*OCAyO-dIcTbTgPQ7.png" /><figcaption>UploadService.java</figcaption></figure><p>Now I will talk about the setup of the Printing Application. 2 basic service classes are used in the setup of the application. These are divided into 2 as Upload Service and Template Service. In the images I have added above, there is Upload service. In a request request from the Upload UI Screen, the programme works as follows:</p><p>1- Firstly, CSS and HTML files are validated.</p><p>2- Then it is checked whether there are Validate Parameters objects in the HTML file. It is checked whether the template is suitable for the application. (Control is provided based on Invoice and Receipt models under the Persistence/Entity folder. )</p><p>3- If these 2 steps have passed successfully, the information is identified to the files with a unique randomId and saved in the Template Table table with the templateName and folders under resources with HTML, CSS and PNG images. (After saving the template as HTML, the application prints it as PDF and converts it to PNG image and saves it).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/0*i8hpZw2SX5YUARrN.png" /><figcaption>src/main/resources</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*cwBReT5kGfjhTVMj.png" /><figcaption>TemplateService.java</figcaption></figure><p>Now let’s come to the Template service, I had to write a little more methods in this section. I divided the work into as small parts as possible because I wanted to write code in accordance with the Single Responsibility Principle. At the same time, I would need some methods because I would continue to develop. In the print request request from the Home UI Screen, the programme works as follows:</p><p>1- Firstly, it is checked whether such a template exists in the incoming request via templateName and templateType. Then the getBringSuitableTemplate method is running, let me tell you about this method.</p><ul><li>Multiple columns with the same templateName can be inserted into the Template Table table.This method allows us to find exactly the template that suits us.Firstly, it calls the information with the same templateName and checks the effectiveStartDate and effectiveEndDate.</li><li>The controls work as follows: 1st priority startDate and EndDate columns are full and the column suitable for the current date is selected.</li><li>2.priority EndDate column is full and the column suitable for the current date is selected.</li><li>3.priority StartDate column is full and the column suitable for the current date is selected.</li><li>4.if there is a column without any start and end date, that template is selected</li><li>The purpose of choosing such a fiction is to have the same template but on special days (Holidays, New Year’s Celebration, etc.) the template that will be valid, the general structure will not change, but in cases where there will be minor additions to its appearance, we will upload it to the system by specifying the Start or End date, after these days are over, the old template will be based on the application.</li></ul><p>2- After the template we will use is based on the application, the fields we specify with the request request are added to the id elements in HTML.</p><p>3-Then the HTML object we have prepared goes to the print function to print. I created more than one print service method in this section (I did it to create an alternative).</p><p>4- Afterwards, the prepared PDF format returns response as a byte[] object.</p><p>Scenarios to Add:</p><ul><li>.XML extension files will also be developed to support.(.HTML extension will be developed as an alternative.)</li><li>Information will be recorded in Invoice and Receipt Models so that information can be easily retrieved in PDF format.</li><li>HTML, CSS, PNG extensions accumulate under Resources, these files increase the space that the application will occupy, which poses a problem for the application. Therefore, the application needs to save these files to a remote server and read them from the server.</li></ul><p>3rd party Dependencies use:</p><ul><li>Jsoup → MultiPart allowed me to convert incoming HTML files as HTMLDocument.</li><li>PostreSQL → Docker-compose allowed me to use the PostreSQL image I ran from the docker-compose file</li><li>IronPDF → It enabled me to convert HTML Files created in accordance with the parameters entered from outside to PDF Format and print them.</li><li>FlyingSaucerPDF → I used it as an Alternative PDF Package.</li><li>AsposeWords → Alternatif Image Paketi olarak kullandım.</li><li>Lombok → <a href="http://twitter.com/Lombok">@Lombok</a> → <a href="http://twitter.com/Data">@Data</a>, <a href="http://twitter.com/ToString">@ToString</a>, <a href="http://twitter.com/Builder">@Builder</a> I also needed the Lombok library in which I use anatations. The feature of generating code with anatation provides a lot of convenience, it also provides more readable code.</li></ul><blockquote><em>Core: </em><a href="https://github.com/Canaxs/spring-printing"><em>github.com/Canaxs/spring-printing</em></a></blockquote><blockquote><em>UI: </em><a href="https://github.com/Canaxs/spring-printing-ui"><em>github.com/Canaxs/spring-printing-ui</em></a></blockquote><blockquote><em>Spring Boot Version: 3.2.5</em></blockquote><blockquote>Social Media Addresses</blockquote><blockquote><em>Github → </em><a href="https://github.com/Canaxs"><em>github.com/Canaxs</em></a></blockquote><blockquote><em>Linkedin → </em><a href="https://www.linkedin.com/in/mericcana/"><em>linkedin.com/in/mericcana/</em></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c8152f77051" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spring Printing Uygulaması]]></title>
            <link>https://medium.com/@mericcana/spring-printing-uygulamas%C4%B1-bafe0cf4ab3f?source=rss-3a64aecfa9a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/bafe0cf4ab3f</guid>
            <category><![CDATA[html-to-pdf]]></category>
            <category><![CDATA[spring]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[pdf]]></category>
            <category><![CDATA[angular]]></category>
            <dc:creator><![CDATA[Meriç Cana]]></dc:creator>
            <pubDate>Fri, 31 May 2024 13:42:27 GMT</pubDate>
            <atom:updated>2025-05-26T11:49:59.669Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*2T_dBde-3X6qWBeyI9GNlA.png" /><figcaption>Portable Document Format</figcaption></figure><p><strong>Herkese selam!</strong><br>Bir süredir üzerinde çalıştığım <strong>Printing</strong> uygulamamı sizlerle paylaşmak istiyorum. Bu yazıda, uygulamanın ne işe yaradığını ve nasıl kullanıldığını sizlere kısaca anlatacağım.</p><h3>Uygulama ne yapıyor?</h3><p>Uygulama, sistemde önceden tanımlanmış makbuz veya fatura şablonlarını, dışarıdan sağlanan parametreler doğrultusunda otomatik olarak dolduruyor ve bu içerikleri PDF formatında çıktı olarak kullanıcıya sunuyor.</p><p>Yani, kendi oluşturduğunuz bir fatura ya da makbuz şablonunu uygulamaya yükleyerek, bu şablona uygun bir şekilde veriyle doldurulmuş çıktılar alabiliyorsunuz.</p><h3>Nasıl kullanılır?</h3><p>Tek yapmanız gereken, resources klasörü altında bulunan <strong>Valid Parameters</strong> dosyasını inceleyerek, şablonunuzda doldurulmasını istediğiniz alanlara uygun <strong>ID’leri HTML kodunuzda tanımlamak</strong>.</p><p>Bu sayede uygulama, eşleşen alanlara dışarıdan gelen verileri yerleştiriyor ve çıktınızı hazır hale getiriyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*3CkkeL25uNoxBcwQ6qsdjw.png" /><figcaption>Template: fatura_0</figcaption></figure><p>Uygulamaya şablon yükleme ve şablonlar üzerinden baskı alma işlemlerini aşağıdaki videoda adım adım gösterdim.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FLRL118hplR0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DLRL118hplR0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FLRL118hplR0%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9267bc219a0522e8b61cf75bf4349b88/href">https://medium.com/media/9267bc219a0522e8b61cf75bf4349b88/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OLhnrxNuLageg40_KaGSwQ.png" /><figcaption><a href="http://localhost:4200/upload#file">spring-printing/upload#file</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f9Dxtp7zYvqDIWJVRrDxwg.png" /><figcaption>UploadService.java</figcaption></figure><p>Şimdi Printing Uygulaması’nın mimarisinden bahsedeceğim.</p><p>Uygulamanın temelinde iki ana servis sınıfı bulunuyor: <strong>Upload Service</strong> ve <strong>Template Service</strong>. Yukarıda paylaştığım görsellerde Upload Service arayüzünü görebilirsiniz. Upload UI ekranından yapılan bir istek (request) şu şekilde işleniyor:</p><p>1- Öncelikle, yüklenen <strong>CSS</strong> ve <strong>HTML</strong> dosyaları doğrulanıyor (validate ediliyor)</p><p>2- Daha sonra, HTML dosyası içinde, <strong>Valid Parameters</strong> nesnelerinin varlığı kontrol ediliyor. Böylece şablonun uygulama gereksinimlerine uygun olup olmadığına bakılıyor. (Bu doğrulama, Persistence/Entity klasörü altındaki <strong>Invoice</strong> ve <strong>Receipt</strong> modelleri esas alınarak yapılıyor.)</p><p>3- Eğer bu iki aşama başarıyla geçilirse, dosyalar benzersiz bir <strong>randomId</strong> ile tanımlanıyor ve templateName ile birlikte <strong>Template Table</strong> tablosuna ve resources altındaki klasörlere HTML, CSS ve PNG formatında kaydediliyor.<br> (Uygulama, şablonu HTML olarak kaydettikten sonra, PDF formatında çıktı alıyor ve bu çıktıyı PNG görüntüsüne dönüştürerek arşivliyor.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/1*3XhPX8qN6Cx_VK3RL9Ftew.png" /><figcaption>src/main/resources</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*MnslkilibbYUPWA3vZ598Q.png" /><figcaption>TemplateService.java</figcaption></figure><p><strong>Şimdi de Template Servisi’ne geçelim.</strong></p><p>Bu bölümde, işlevleri olabildiğince küçük parçalara ayırarak birçok metot yazdım. Amacım, <strong>Single Responsibility Principle (Tek Sorumluluk Prensibi)</strong>’ne uygun, sürdürülebilir ve kolay geliştirilebilir bir kod yapısı oluşturmak. Ayrıca ileride yapacağım geliştirmeler için ihtiyaç duyacağım metodları da şimdiden ekledim.</p><p>Home UI ekranından gelen <strong>baskı talebi (print request)</strong> şu şekilde işleniyor:</p><p>1- Gelen <strong>request</strong>’te, <strong>templateName</strong> ve <strong>templateType</strong> üzerinden ilgili şablonun varlığı kontrol edilir. Ardından, <strong>getBringSuitableTemplate</strong> metodu çalıştırılır. Şimdi size bu metodun işleyişinden bahsedeyim.</p><blockquote><strong><em>Template Table</em></strong><em> tablosunda aynı </em><strong><em>templateName</em></strong><em>’e sahip birden fazla kayıt bulunabilir. Bu metod, bize en uygun şablonu seçmemizi sağlar. İşleyiş şu şekildedir:</em></blockquote><blockquote><em>Öncelikle, aynı </em><strong><em>templateName</em></strong><em>’e sahip kayıtlar çağrılır ve </em><strong><em>effectiveStartDate</em></strong><em> ile </em><strong><em>effectiveEndDate</em></strong><em> alanları kontrol edilir.</em></blockquote><blockquote><em>Kontroller şu öncelik sırasına göre yapılır:</em></blockquote><blockquote><em>1- </em><strong><em>StartDate</em></strong><em> ve </em><strong><em>EndDate</em></strong><em> alanları dolu olan ve içinde bulunduğumuz tarihe uygun kayıt seçilir.</em></blockquote><blockquote><em>2- </em><strong><em>EndDate</em></strong><em> alanı dolu olan ve içinde bulunduğumuz tarihe uygun kayıt seçilir.</em></blockquote><blockquote><em>3- </em><strong><em>StartDate</em></strong><em> alanı dolu olan ve içinde bulunduğumuz tarihe uygun kayıt seçilir.</em></blockquote><blockquote><em>4- Hiçbir başlangıç veya bitiş tarihi belirtilmemiş kayıt varsa, o şablon tercih edilir.</em></blockquote><blockquote>Bu yapıyı tercih etmemin sebebi, aynı şablonun özel günlerde (örneğin Bayramlar, Yılbaşı kutlamaları vb.) kullanılabilecek versiyonlarının, genel yapıyı bozmadan, sadece görünümünde ufak değişiklikler yapılarak sisteme yüklenebilmesidir. Böylece, özel dönemler bittiğinde uygulama, eski şablonu otomatik olarak esas alacaktır.</blockquote><p>2- Uygulama, kullanılacak şablonu belirledikten sonra, request ile gönderilen veriler HTML içindeki ilgili <strong>id</strong> elementlerine yerleştirilir</p><p>3-Daha sonra, oluşturulan HTML nesnesi, baskı işlemi için <strong>print</strong> fonksiyonuna gönderilir. Bu aşamada, farklı senaryolar için birden fazla baskı servisi metodu geliştirdim. (Alternatifler oluşturmak amacıyla.)</p><p>4- Son olarak, hazırlanan PDF çıktısı, <strong>byte[]</strong> formatında response olarak geri döner.</p><p>Ekleyeceğim Senaryolar:</p><ul><li>.XML uzantılı dosyaları destekleyecek geliştirme yapılacaktır. (Bu, .HTML uzantısına alternatif olarak tasarlanacaktır.)</li><li><strong>Invoice</strong> ve <strong>Receipt</strong> modellerine veri kaydı sağlanacak; böylece bilgiler PDF formatında kolayca getirilebilecektir. ✔</li><li>HTML, CSS ve PNG dosyaları resources klasöründe birikmekte ve uygulamanın kapladığı alanı büyütmektedir. Bu durum uygulama performansı açısından sorun yaratmaktadır. Bu nedenle, bu dosyaların uzak bir sunucuya kaydedilmesi ve oradan okunması gerekmektedir.</li><li><strong>UI Upload Ekranı’na</strong>, uygulamaya yüklenecek HTML dosyalarının yazımında dikkat edilmesi gerekenler hakkında bir kılavuz eklenecektir. ✔</li></ul><p>Kullandığım 3.Parti Bağımlılıklar:</p><ul><li>Jsoup → MultiPart olarak gelen HTML dosyalarını HTMLDocument olarak dönüştürmemi sağladı.</li><li>PostreSQL → Docker-compose dosyası ile kolayca çalıştırdığım ve kullandığım veritabanı imajı oldu.</li><li>IronPDF → dışarıdan gelen parametreler doğrultusunda oluşturulan HTML dosyalarını PDF formatına dönüştürerek baskı almamı sağladı.</li><li>FlyingSaucerPDF → Alternatif PDF Paketi olarak kullandım.</li><li>AsposeWords → Alternatif Image Paketi olarak kullandım.</li><li>Lombok → @Data, @ToString,@Builder Anatasyonlarını kullandığım Lombok kütüphanesine de ihtiyaç duydum.Anatasyon ile kod üretme özelliği oldukça kolaylık sağlıyor, Aynı zamanda daha okunabilir kod yazılmasını sağlıyor.</li></ul><blockquote>Core: <a href="https://github.com/Canaxs/spring-printing">github.com/Canaxs/spring-printing</a></blockquote><blockquote>UI: <a href="https://github.com/Canaxs/spring-printing-ui">github.com/Canaxs/spring-printing-ui</a></blockquote><blockquote><em>Spring Boot Version: 3.2.5</em></blockquote><blockquote>Sosyal Medya Adreslerim</blockquote><blockquote>Github → <a href="https://github.com/Canaxs">github.com/Canaxs</a></blockquote><blockquote>Linkedin → <a href="https://www.linkedin.com/in/mericcana/">linkedin.com/in/mericcana/</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bafe0cf4ab3f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Deploy Spring Boot Application to Kubernetes Environment with Docker?]]></title>
            <link>https://medium.com/@mericcana/how-to-deploy-spring-boot-application-to-kubernetes-environment-with-docker-98be285ccc3b?source=rss-3a64aecfa9a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/98be285ccc3b</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[deploy]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[spring]]></category>
            <category><![CDATA[spring-boot]]></category>
            <dc:creator><![CDATA[Meriç Cana]]></dc:creator>
            <pubDate>Sat, 13 Jan 2024 15:13:58 GMT</pubDate>
            <atom:updated>2024-01-13T15:13:58.567Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*Ii5Z3RaN4yS9q3ELF-EiQQ.png" /><figcaption>Docker + Kubernetes</figcaption></figure><p>Hi everyone, today I will tell you how we can deploy our Spring Boot application to the kubernetes environment that we will create on our local computer using Dockerfile.<br>First of all, we will need to install a platform called Minikube on our computer. This platform allows users to create, deploy and test Kubernetes environment.<br>We will also need the <a href="https://www.docker.com/products/docker-desktop/"><strong>Docker Desktop</strong></a> application. You need to download and install it from Docker Desktop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*VFCCqO2mDBFpqTtOarXGrA.png" /><figcaption>Docker Desktop</figcaption></figure><blockquote>Minikube → <a href="https://minikube.sigs.k8s.io/docs/start/">https://minikube.sigs.k8s.io/docs/start/</a></blockquote><p>We can start by going to the address above and downloading the .exe from the latest release area.After installing the Minikube-Installer file on our computer, we must follow the steps below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*XJFpxuqp5eF6zfcyn5eIqw.png" /><figcaption>Installation</figcaption></figure><p>1 → Run the PowerShell command line, then copy the code from step 1 and run it in PowerShell.<br>2 → Close PowerShell and run it as Administrator this time. Then copy the code from step 2 and run it in PowerShell.<br>3 → Then we run the <em>minikube start</em> command. (We need to run Docker Desktop before running this command)</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*YpuIqIYaJQdkMOWhsUzYHw.png" /><figcaption>minikube start</figcaption></figure><p>4 → You can use the <em>minikube status</em> command to check if it is working correctly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*i6_lJF71IjVwY6JFkyp39g.png" /><figcaption>minikube status</figcaption></figure><p>5 → We run the <em>minikube docker-env</em> command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*MYdJuSkuUPTLJGctEIdadA.png" /><figcaption>docker-env</figcaption></figure><p>Our Minikube application is ready. When we check it from the Docker desktop application, we can see it in the containers area.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*tAsXtSePoz0iaswcCdB1sw.png" /><figcaption>Docker Desktop</figcaption></figure><p>Now we need to add the necessary files related to deployment.yaml and k8s to our Spring boot application. You can access the files from the following github address. You can add the files to your project by changing the properties according to your own project.</p><blockquote>K8s-SpringBoot → <a href="https://github.com/Canaxs/k8s-springboot">github.com/Canaxs/k8s-springboot</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*O_ANPHSV-9ywRCJM8fABsg.png" /><figcaption>Dockerfile</figcaption></figure><p>A critical part here is that you need to specify a jdk that is suitable for your java version you are using in the current OpenJDK version section. If you are using Java 17, this version will solve your job.(I will share some suitable OpenJDK versions for you at the end of the article)</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*bg7uA6Pa3xP3D03wMT7McQ.png" /><figcaption>k8s/deployment.yaml</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*txlIFeKiZ4yofSWvts4pGQ.png" /><figcaption>k8s/service.yaml</figcaption></figure><p>Now that we have prepared our Kubernetes and dockerfile files, we can now containerize our Spring Boot application.Before coming to the docker build process of our Spring Boot application, there is a part you should not forget, we need to install maven → install because we need a jar file under the target.<br>1 → We run the PowerShell command line, then go to the directory where our application is located, then run the following command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*AGHgqoqbEdM9uwvrIO-3fQ.png" /><figcaption>PowerShell Terminal</figcaption></figure><p>In the Container name field, you should put whatever you want the container name of your application to be.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*I5VgGjv8oZYbNbXvLP_6Nw.png" /><figcaption>PowerShell Terminal</figcaption></figure><p>In this case, the container is created and the next step is to deploy this docker image to the kubernetes environment.<br>We follow these paths for this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*iHEVO9N9bfo4ALgnB11hCw.png" /><figcaption>PowerShell Terminal</figcaption></figure><p>Since our yaml files are located under the k8s folder, we configure our deployment.yaml file in the k8s folder.<br>Our application has been deployed to kubernetes environment, now we just need to check the pod and application log, I will show the codes we use for this below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*h8lKVSlMCcALJ8Mu7lyxzg.png" /><figcaption>kubectl get pods</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*Ji9Bk1wAMaVA2_Roi7eTtQ.png" /><figcaption>kubectl get deployments</figcaption></figure><p>Using the codes above, we can look at the application pods and whether they are deployed or not. Now let’s examine the application logs</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*Fwy4gFZWvS0LX1PfxLJI9Q.png" /><figcaption>kubectl logs &lt;pod name&gt;</figcaption></figure><blockquote>Kubectl logs &lt;pod name&gt; command to examine our application.</blockquote><p>I am sharing with you some commands that you can use in PowerShell Terminal that may be useful for you.</p><blockquote>kubectl get all → It brings you the parameters of the application such as pod, Ip, docker-name, Replicasname.</blockquote><blockquote>kubectl delete pod &lt;pod name&gt; → It allows us to delete pods.</blockquote><blockquote>OpenJdk Versions → openjdk:8 , openjdk:11, openjdk:17-oracle, openjdk:17-slim</blockquote><blockquote><em>The app I used in this article → </em><a href="https://github.com/Canaxs/k8s-springboot">github.com/Canaxs/k8s-springboot</a></blockquote><blockquote><em>Java Version: 17</em></blockquote><blockquote><em>Spring Boot Version: 3.2.1</em></blockquote><blockquote>Social Media Addresses</blockquote><blockquote>Github → <a href="https://github.com/Canaxs">github.com/Canaxs</a></blockquote><blockquote>Linkedin → <a href="https://www.linkedin.com/in/mericcana/">linkedin.com/in/mericcana/</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98be285ccc3b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spring Boot Uygulaması, Docker ile Kubernetes Ortama Nasıl Deploy Edilir ?]]></title>
            <link>https://medium.com/@mericcana/spring-boot-uygulamas%C4%B1-docker-ile-kubernetes-ortama-nas%C4%B1l-deploy-edilir-501cbb2535e9?source=rss-3a64aecfa9a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/501cbb2535e9</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[spring]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[deploy]]></category>
            <dc:creator><![CDATA[Meriç Cana]]></dc:creator>
            <pubDate>Fri, 12 Jan 2024 01:39:03 GMT</pubDate>
            <atom:updated>2024-01-13T15:16:32.013Z</atom:updated>
            <content:encoded><![CDATA[<h3>Spring Boot Uygulaması, Docker ile Kubernetes Ortama Nasıl Deploy Edilir ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*Ii5Z3RaN4yS9q3ELF-EiQQ.png" /><figcaption>Docker + Kubernetes</figcaption></figure><p>Herkese selam, bugün sizlere Spring Boot uygulamamızı Dockerfile kullanarak, yerel bilgisayarımızda oluşturacağımız kubernetes ortama nasıl deploy edebileceğimizi anlatacağım.</p><p>Öncelikle bunun için <em>Minikube </em>adında bir platformu bilgisayarımıza kurmak olacak.Bu platform, kullanıcılara Kubernetes ortamını oluşturma, uygulama dağıtma ve test etme olanağı sağlıyor.</p><p>Docker desktop uygulamasına’da ihtiyacımız olucak. <a href="https://www.docker.com/products/docker-desktop/"><strong>Docker Desktop</strong></a><strong> </strong>Adresinden indirerek kurulumunu yapmanız gerekiyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*VFCCqO2mDBFpqTtOarXGrA.png" /><figcaption>Docker Desktop</figcaption></figure><blockquote>Minikube → <a href="https://minikube.sigs.k8s.io/docs/start/">https://minikube.sigs.k8s.io/docs/start/</a></blockquote><p>Yukarıdaki adres’e giderek <strong>latest release</strong> alanından .exe’yi indirerek başlayabiliriz.Minikube-Installer dosyasını bilgisayarımıza kurduktan sonra aşağıdaki adımları izlemeliyiz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XJFpxuqp5eF6zfcyn5eIqw.png" /><figcaption>Installation</figcaption></figure><p>1 → PowerShell komut satırını çalıştırıyoruz ardından 1.adımda bulunan kodu kopyalarak PowerShell’de çalıştırıyoruz.</p><p>2 → PowerShell’i kapatıp bu sefer Yönetici olarak çalıştırıyoruz.Ardından 2.adımda bulunan kodu kopyalıyoruz ve PowerShell’de çalıştırıyoruz.</p><p>3 → Ardından minikube start komutunu çalıştırıyoruz.(Bu komutu çalıştırmadan önce Docker Desktop uygulamasını çalıştırmamız gerekiyor.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*YpuIqIYaJQdkMOWhsUzYHw.png" /></figure><p>4 → Doğru çalışıp çalışmadığını öğrenmek için <em>minikube status</em> komutunu kullanabilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/1*i6_lJF71IjVwY6JFkyp39g.png" /></figure><p>5 → <em>minikube docker-env</em> komutunu çalıştırıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*MYdJuSkuUPTLJGctEIdadA.png" /></figure><p>Minikube uygulamamız hazır hale geldi.Docker desktop uygulamasından kontrol ettiğimiz zaman containers alanında görebiliyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*tAsXtSePoz0iaswcCdB1sw.png" /><figcaption>Docker Desktop</figcaption></figure><p>Şimdi sırada Spring boot uygulamamızın içerisine deployment.yaml ve k8s ile ilgili gerekli dosyaları eklememiz gerekiyor.Aşağıdaki github adresinden dosyalara ulaşabilirsiniz.Property’leri kendi projenize göre değiştirerek dosyaları projenize ekleyebilirsiniz.</p><blockquote>K8s-SpringBoot → <a href="https://github.com/Canaxs/k8s-springboot">github.com/Canaxs/k8s-springboot</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*O_ANPHSV-9ywRCJM8fABsg.png" /><figcaption>Dockerfile</figcaption></figure><p>Burada kritik olan bir kısım mevcut OpenJDK sürümü kısmına kullanmış olduğunuz java versiyonunuza uygun bir jdk belirlemeniz gerekiyor.Java 17 kullanıyorsanız eğer bu sürüm işinizi çözecektir.(Yazı sonunda bazı uygun OpenJDK sürümlerini sizler için paylaşacağım.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*bg7uA6Pa3xP3D03wMT7McQ.png" /><figcaption>k8s/deployment.yaml</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*txlIFeKiZ4yofSWvts4pGQ.png" /><figcaption>k8s/service.yaml</figcaption></figure><p>Kubernetes ve dockerfile dosyalarımızı’da hazırladığımıza göre artık Spring Boot uygulamamızı konteyner haline getirebiliriz.Spring Boot uygulamamızın docker build işlemine gelmeden önce unutmamanız gereken bir kısım mevcut, maven → install etmemiz gerekiyor çünkü target altında bir jar dosyasına ihtiyacımız var Maven Install sayesinde bu işlemi gerçekleştirebiliyoruz.</p><p>1 → PowerShell komut satırını çalıştırıyoruz.Ardından uygulamamızın bulunduğu dizine gidiyoruz.Ardından aşağıdaki komutu çalıştırıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*AGHgqoqbEdM9uwvrIO-3fQ.png" /><figcaption>PowerShell Terminal</figcaption></figure><p>Container name alanına uygulamanızın konteyner isminin ne olmasını istiyorsanız onu koymalısınız.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*I5VgGjv8oZYbNbXvLP_6Nw.png" /><figcaption>PowerShell Terminal</figcaption></figure><p>Ardından böyle bir ekran sizi karşılayacak.Bu durumda container oluşturulmuş oluyor.Sırada bu docker imajını kubernetes ortama deploy etmek kaldı.</p><p>Bunun içinde şu yolları izliyoruz:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*iHEVO9N9bfo4ALgnB11hCw.png" /><figcaption>PowerShell Terminal</figcaption></figure><p>Yaml dosyalarımız k8s klasörü altında bulunduğu için k8s klasöründe bulunan deployment.yaml dosyamızı konfigure ediyoruz.</p><p>Uygulamamız kubernetes ortama deploy oldu.Artık geriye pod ve uygulama log’unu kontrol etmek kaldı.Bunun için kullandığımız kodları aşağıda göstereceğim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*h8lKVSlMCcALJ8Mu7lyxzg.png" /><figcaption>kubectl get pods</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*Ji9Bk1wAMaVA2_Roi7eTtQ.png" /><figcaption>kubectl get deployments</figcaption></figure><p>Yukarıdaki kodları kullanarak uygulama pod’larına ve deploy olup olmadığına bakabiliyoruz.Şimdide uygulama loglarını inceleyelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fwy4gFZWvS0LX1PfxLJI9Q.png" /><figcaption>kubectl logs &lt;pod name&gt;</figcaption></figure><blockquote>Kubectl logs &lt;pod ismi&gt; komutunu kullanarak uygulamamızı inceleyebiliriz.</blockquote><p>İşlemimiz bu kadardı.PowerShell Terminalde kullanabileceğiniz işinize yarayabilecek bazı komutları sizlerle paylaşıyorum.</p><blockquote>kubectl get all → Uygulamanın pod,Ip,docker-name,Replicasname gibi parametrelerini size getirir.</blockquote><blockquote>kubectl delete pod &lt;pod name&gt; → Pod silmemize olanak sağlar.</blockquote><blockquote>OpenJdk Sürümleri: openjdk:8 , openjdk:11, openjdk:17-oracle, openjdk:17-slim</blockquote><blockquote>Bu yazımda kullandığım uygulama → <a href="https://github.com/Canaxs/k8s-springboot">github.com/Canaxs/k8s-springboot</a></blockquote><blockquote><em>Java Version: 17</em></blockquote><blockquote><em>Spring Boot Version: 3.2.1</em></blockquote><blockquote>Sosyal Medya Adreslerim</blockquote><blockquote>Github → <a href="https://github.com/Canaxs">github.com/Canaxs</a></blockquote><blockquote>Linkedin → <a href="https://www.linkedin.com/in/mericcana/">linkedin.com/in/mericcana/</a></blockquote><p>En: <a href="https://medium.com/@mericcana/how-to-deploy-spring-boot-application-to-kubernetes-environment-with-docker-98be285ccc3b"><strong><em>How to Deploy Spring Boot Application to Kubernetes Environment with Docker?</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=501cbb2535e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MailBox Core]]></title>
            <link>https://medium.com/@mericcana/mailbox-core-92fb5527b13b?source=rss-3a64aecfa9a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/92fb5527b13b</guid>
            <category><![CDATA[mail]]></category>
            <category><![CDATA[spring]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[projects]]></category>
            <dc:creator><![CDATA[Meriç Cana]]></dc:creator>
            <pubDate>Mon, 08 Jan 2024 19:56:50 GMT</pubDate>
            <atom:updated>2025-05-26T11:53:26.682Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/276/0*lSmBPZHLRv8JEz5G.jpeg" /><figcaption>MailBox Icon</figcaption></figure><blockquote><a href="https://github.com/Canaxs/mailbox-core">MailBox Repository</a></blockquote><p><strong>Herkese selam!</strong><br>Bir süredir üzerinde çalıştığım <strong>MailBox</strong> projemi sizlerle paylaşmak istiyorum. Bu projenin asıl amacı, mail adresimdeki gelen kutusuna düşen mailleri kategorize etmek ve bu konuda beni bilgilendirecek bir çekirdek (core) sistem geliştirmekti.</p><p>Bu hedefle yola çıkarak, istediğim gibi bir uygulama tasarladım. Projem, mailleri <strong>7 farklı kategoriye</strong> ayırabilen bir <strong>Spring Boot</strong> uygulaması olarak hayata geçti. Şimdi size, bu projede hangi teknolojileri ve bağımlılıkları kullandığımı kısaca anlatacağım.</p><p>MailBox için <strong>Spring Framework</strong>’ü tercih ettim. Derleme ve otomasyon için ise <strong>Maven Plugin</strong>’i kullandım. Maven’i seçmemin sebebi, projelerimi şimdiye kadar genellikle Maven çatısı altında geliştirmiş olmam ve bu plugin konusunda hakimiyetimin daha fazla olmasıdır. Ayrıca, proje kapsamında kullanacağım paketlerin daha karmaşık veya özelleştirilebilir yapıya ihtiyacı olmadığından Gradle’ı tercih etmedim.</p><p>Projede en çok ihtiyaç duyduğum bağımlılıklar ise, Spring Boot’un uygulamalara kolayca dahil edilmesini sağlayan <strong>Starters</strong> bağımlılıkları oldu. Bu pakette yer alan 6 modülü kullandım: <strong>Data/JPA</strong>, <strong>Security</strong>, <strong>Web</strong>, <strong>Mail</strong>, <strong>Validation</strong> ve <strong>Test</strong>. Şimdi bu modülleri neden tercih ettiğime biraz değineceğim.</p><p><strong>JPA (Java Persistence API)</strong>, repository sınıflarını ve sorguları dinamik olarak oluşturma imkânı sunarak büyük kolaylık sağlıyor. JDBC’ye kıyasla işimizi oldukça hızlandırıyor ve zaman kazandırıyor. Ayrıca, bu bağımlılık Hibernate desteğini de içeriyor. Java platformunda kullanabileceğim bir ORM aracı ihtiyacımı Hibernate ile karşıladım.</p><p>Projede sık kullandığım anotasyonlar şunlar oldu:<br>@Entity, @Table, @GeneratedValue, @Column, @Id</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/0*Swl173PwKIzGS9dr.png" /><figcaption>User.java</figcaption></figure><p><strong>Security</strong><br>Kimlik doğrulama ve yetkilendirme süreçlerinde Spring Security’den yararlandım. HTTP endpoint’lerini güvence altına almama olanak sağladı. Ayrıca, JSON Web Token (JWT) kullanarak etkili bir kimlik doğrulama mekanizması geliştirdim.</p><p>Projede kullandığım önemli anotasyonlar:<br>@EnableWebSecurity, @EnableMethodSecurity</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/0*jOkt1KBCiJXsTO7y.png" /><figcaption>WebSecurity.java</figcaption></figure><p><strong>Dipnot:</strong><br>Bu aşamada aklıma gelen bir senaryo doğrultusunda uygulamaya bir <strong>Schedule servisi</strong> ekledim. Aslında logout işlemleriyle ilgili bir durumdan kaynaklanıyor. Generate edilen tokenlar, token tablosuna kayıt ediliyor; ancak süresi dolmuş ve logout yapılmamış tokenlar veritabanında gereksiz yer kaplıyor. Bunun önüne geçmek için, her 1 saatte bir çalışan ve süresi dolmuş tokenları temizleyen bir servis geliştirdim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*lz_BeLOUIBT6peQn.png" /><figcaption>TokenSchedule.java</figcaption></figure><p><strong>Web</strong><br>MVC yöntemini uygulamak için <strong>Web-Servlet</strong> modülüne ihtiyaç duydum, bu nedenle bu bağımlılığı kullandım.<br>Projede kullandığım anotasyonlar:<br>@RestController, @RequestMapping, @GetMapping, @PostMapping</p><p><strong>Mail</strong><br>Aslında Spring Boot’un Starters paketi içinde bulunan Mail bağımlılığı, yalnızca mail gönderme (sender) işlemlerini destekliyordu. Ben ise gelen kutusundaki mailleri okumak istediğim için, bu pakete alternatif olarak <strong>sun.mail</strong> paketini tercih ettim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*OBOZc2B5EcG0waJQ.png" /><figcaption>MailBoxServiceImpl.java</figcaption></figure><p><strong>Validation</strong><br> Domain sınıflarındaki alanların doğruluğunu sağlamak için validation constraint’lerini kullandım. Bu sayede, verilerin belirlenen kurallara uygunluğu otomatik olarak kontrol ediliyor.<br>Projede kullandığım anotasyonlar:<br>@NotNull, @Size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/0*PdwlqlWWoCzX92gP.png" /><figcaption>User.java</figcaption></figure><p><strong>Test</strong><br>Unit ve integration testlerini yazıp çalıştırabilmek için Spring Boot’un test modülünden yararlandım. Bu sayede uygulamanın farklı bileşenlerini izole şekilde test etmek mümkün oldu.<br>Projede kullandığım anotasyonlar:<br>@AutoConfigureMockMvc, @SpringBootTest, @ExtendWith, @Test</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*y5NC9TSTbYYNsjXk.png" /><figcaption>AuthenticationControllerTests.java</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*IlvFDrvkFryPYLJB.png" /><figcaption>UserServiceUnitTests.java</figcaption></figure><p>Ek olarak, Spring Boot Data JPA’nın sunduğu <strong>Auditing</strong> özelliğinden yararlanarak, BaseEntity adında bir süper sınıf oluşturdum. Bu sınıf, insert ve update işlemlerinin zamanını ve kullanıcı bilgisini Mails tablosunda tutmamı sağladı.</p><p>Starter bağımlılıklarının yanı sıra üçüncü parti modüllerden de faydalandım. Projeme <strong>MapStruct</strong> bağımlılığını ekledim. Bu kütüphane, persistence entity’lerimi DTO objelerine dönüştürmek için kullanılıyor. Tek tek entity alanlarını set etmek yerine, Mapper interface’i ile bu işlemi kolayca gerçekleştirdim.</p><p>Veritabanı olarak <strong>MySQL</strong> kullandım. Bunun için bir docker-compose.yml dosyası hazırladım. MySQL’in nasıl ayağa kaldırılacağı ve kullanılacağına dair bilgileri README dosyamda detaylı olarak paylaştım.</p><p>Başka bir bağımlılık olarak <strong>Jsoup</strong> modülünü kullandım. Bunun sebebi, resources altında bulunan mail-file.txt dosyasındaki kelimeleri, mail tiplerine göre okuyup bu kelimeleri List koleksiyonlarına aktarmaktı. Daha sonra, mail içeriğindeki kelimelerle karşılaştırma yapacak bir yapı oluşturdum. Jsoup, HTML formatında gelen içerikleri temizleyip ayıklamamı sağladı.</p><p><strong>Lombok</strong> kütüphanesine de ihtiyaç duydum. Projemde @Getter, @Setter, @Data, @ToString, @NoArgsConstructor, @AllArgsConstructor, @EqualsAndHashCode ve @Builder anotasyonlarını kullandım. Lombok’un anotasyon tabanlı kod üretimi, geliştirme sürecini oldukça kolaylaştırdı ve daha okunabilir kod yazmama yardımcı oldu.</p><p>Bu projemi geliştirirken, Spring Boot’un temel prensiplerine uygun kod yazmaya özen gösterdim. Umarım beğenirsiniz! :)</p><blockquote>Java Version: 17</blockquote><blockquote>Spring Boot Version: 3.2.1</blockquote><blockquote><em>Sosyal Medya Adreslerim</em></blockquote><blockquote><em>Github → </em><a href="https://github.com/Canaxs"><em>https://github.com/Canaxs</em></a></blockquote><blockquote><em>Linkedin → </em><a href="https://www.linkedin.com/in/mericcana/"><em>https://www.linkedin.com/in/mericcana/</em></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92fb5527b13b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>