<?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 Enes Genç on Medium]]></title>
        <description><![CDATA[Stories by Enes Genç on Medium]]></description>
        <link>https://medium.com/@enesfurkangenc?source=rss-1346729d3d51------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3D2w5K58RhZAg4lSkm5kMQ@2x.jpeg</url>
            <title>Stories by Enes Genç on Medium</title>
            <link>https://medium.com/@enesfurkangenc?source=rss-1346729d3d51------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 01:08:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@enesfurkangenc/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[I Tried NotePlan, Day One, and Obsidian for Daily Notes — Here’s What Stuck]]></title>
            <link>https://medium.com/@enesfurkangenc/i-tried-noteplan-day-one-and-obsidian-for-daily-notes-heres-what-stuck-bbd7ba70d756?source=rss-1346729d3d51------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbd7ba70d756</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[obsidian]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[journaling]]></category>
            <category><![CDATA[notetaking]]></category>
            <dc:creator><![CDATA[Enes Genç]]></dc:creator>
            <pubDate>Sat, 22 Aug 2026 12:12:23 GMT</pubDate>
            <atom:updated>2026-08-22T12:12:23.620Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2f4_GzOJVCvBVuiUN0Kitg.png" /></figure><p>I didn’t want another second brain.</p><p>I wanted a page for today. Something I open in the morning, write in during the day, and close without filing anything into the perfect folder.</p><p>So I spent a few weeks living in three apps people keep recommending for that: NotePlan, Day One, and Obsidian (with the daily note habit). Then I tried one more that is built only around days: Hejour.</p><p>Here’s what each one actually felt like.</p><h3>1. NotePlan</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tXt9DrQMuxwMY7zlSOCvEQ.png" /></figure><p>NotePlan sells the dream pretty well: calendar on one side, daily notes on the other, tasks that belong to a day.</p><p>The first week felt great. I wrote my morning plan on today’s page. Meetings had somewhere to go. Unfinished todos didn’t disappear into a random list.</p><p>Where it lost me was the subscription.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z6YcsEyz7xBzO1O4gKqOAQ.png" /></figure><p>I wasn’t angry at the product. I was tired of paying monthly for a notebook. Every time the renewal date got close, I asked the same question: <em>is this a calendar with notes, or a notes app with a calendar tax?</em></p><p>If you already live inside Apple Calendar and you want tasks glued to days, NotePlan is strong. If you’re subscription-averse, the price becomes part of the daily experience whether you like it or not.</p><p>Best for: people who want daily notes + calendar + tasks in one Mac/iOS system and don’t mind paying for it.</p><h3>2. Day One</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zR25m-CsVzdwGrCWaQuVpA.png" /></figure><p>Day One is beautiful. That part is not a debate.</p><p>Photos, maps, memories, a journal that feels like a place you return to. I used it when I wanted to write about a trip or a hard week. It made those entries feel kept.</p><p>But daily work notes are a different job.</p><p>Day One wants moments. I wanted a working page: todos, meeting scraps, “tell Nora about the ferry,” the boring glue of a day. In Day One that stuff felt like I was cluttering a diary.</p><p>Also: subscription again, if you want the full sync/media story.</p><p>Best for: a personal journal you care about keeping for years. Less ideal as your everyday scratchpad.</p><h3>3. Obsidian (daily notes)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EfpzwmaYCTa1hGxobQerBw.png" /></figure><p>Obsidian is the smartest notebook I have used. Local Markdown. Links. Plugins. A vault that can grow into anything.</p><p>I set up a daily note template. Every morning, a new file. Backlinks for free. It felt powerful for about four days.</p><p>Then I fell into the Obsidian trap.</p><p>I spent more time choosing a plugin, tweaking the template, and deciding where yesterday’s note should live than I spent writing. Daily notes became another system to maintain.</p><p>Obsidian can do day-based notes. It just doesn’t <em>prefer</em> them. You build the habit on top of a general knowledge tool. When the vault gets heavy, today stops feeling light.</p><p>Best for: a long-term knowledge base. Okay for daily notes if you already love Obsidian and keep the setup ruthless.</p><h3>4. Hejour</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gTbndWPmtQuV9JAn9IV8pg.png" /></figure><p>Hejour is smaller on purpose.</p><p>Every day is a page. That is the whole product idea.</p><p>You open today and write. Type @ and leave a section for tomorrow or next Monday — the same note shows up on both days. Unfinished todos roll forward. Calendar events can sit on the page. Notes stay as plain files on your Mac, synced through the iCloud you already own. No Hejour account. No Hejour servers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2f4_GzOJVCvBVuiUN0Kitg.png" /></figure><p>What I liked most was the lack of decisions. No vault architecture. No “which folder does this thought belong in?” Just the day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ogKHmIK2OiFOokYTjJfYyQ.png" /></figure><p>What it is not: a graph database, a plugin playground, or a memory palace with maps and media like Day One.</p><p>Free gets you daily notes, todos, search, iPhone sync, and imports. Pro is a one-time $19 if you want the deeper bits (unlimited linked days, calendar on the page, images, multi-Mac sync). Not another subscription.</p><p>Best for: Mac + iPhone people who want a day page, carry-forward todos, and local files — without building a second brain first.</p><h3>What actually stuck</h3><p>After bouncing between them, my rule got simple:</p><ul><li>Want a journal of memories? Day One.</li><li>Want a knowledge graph? Obsidian.</li><li>Want calendar + tasks + notes and you’ll pay monthly? NotePlan.</li><li>Want today’s page, leftovers that roll forward, and files you own? Hejour.</li></ul><p>I wasn’t looking for the most powerful notes app. I was looking for the one that stayed out of the way when the day was already loud.</p><p>If that’s you too, start with today’s page in whichever app you already have — and notice whether you’re writing, or maintaining the system.</p><p>If you want to try the day-page version I ended on: <a href="https://hejour.com/">hejour.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbd7ba70d756" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why I Built Endpoint: A Postman Alternative That Actually Understands Developers]]></title>
            <link>https://medium.com/@enesfurkangenc/why-i-built-endpoint-a-postman-alternative-that-actually-understands-developers-60c6355e3b42?source=rss-1346729d3d51------2</link>
            <guid isPermaLink="false">https://medium.com/p/60c6355e3b42</guid>
            <dc:creator><![CDATA[Enes Genç]]></dc:creator>
            <pubDate>Wed, 03 Dec 2025 18:07:21 GMT</pubDate>
            <atom:updated>2025-12-03T18:09:25.107Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WUVB8q34s0OGibEh" /><figcaption>Photo by <a href="https://unsplash.com/@image_king?utm_source=medium&amp;utm_medium=referral">Ayush Sharma</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>The Problem with Current API Testing Tools</h3><p>As a developer, I’ve spent countless hours testing APIs. Postman is popular, but it often falls short for real-world development workflows. Missing WebSocket support, slow performance, and a clunky interface led me to build something better.</p><h3>Enter Endpoint: Built for Developers, by Developers</h3><p>Endpoint is a native macOS API testing tool designed with developer experience in mind. It’s not just another Postman clone — it’s a tool that addresses the gaps developers face daily.</p><h3>What Makes Endpoint Different?</h3><h3>1. Native WebSocket Support (Out of the Box)</h3><p>Most API testing tools treat WebSockets as an afterthought. Endpoint includes WebSocket support:</p><ul><li>Real-time connection management</li><li>Message history with timestamps</li><li>JSON formatting for WebSocket messages</li><li>Connection state visualization</li><li>Send/receive message tracking</li></ul><p>Why this matters: Modern apps rely on WebSockets. Testing them shouldn’t require separate tools or workarounds.</p><h3>2. Built-in Performance Testing</h3><p>Endpoint includes performance testing:</p><ul><li>Load Testing: Test concurrent requests, measure response times, and identify bottlenecks</li><li>Response Time Analysis: Detailed timing breakdown (DNS, TCP, TLS, TTFB)</li><li>Concurrent Request Testing: Simulate real-world traffic patterns</li><li>Performance Metrics: Visual charts and statistics</li></ul><p>Real-world use case: Before deploying an API endpoint, run a load test to ensure it handles production traffic. Endpoint makes this straightforward.</p><h3>3. Developer-First UX</h3><p><strong>Drag &amp; Drop Interface</strong></p><ul><li>Reorder requests and collections with drag &amp; drop</li><li>Move requests between collections seamlessly</li><li>Visual feedback during drag operations</li></ul><p><strong>Command Palette (Cmd+P)</strong></p><ul><li>Quick navigation between requests and collections</li><li>Keyboard-first workflow</li><li>Opens requests in new tabs automatically</li></ul><p><strong>Environment Variables with Autocomplete</strong></p><ul><li>Type {{ in request bodies to get variable suggestions</li><li>Autocomplete for environment variables</li><li>No more typos in variable names</li></ul><h3>4. Native macOS Performance</h3><p>Built with SwiftUI for macOS:</p><ul><li>Faster than Electron-based alternatives</li><li>Native macOS integrations</li><li>Lower memory usage</li><li>Smooth animations and interactions</li></ul><h3>Feature Comparison: Endpoint vs. Postman</h3><p><strong>WebSocket Support</strong></p><ul><li>✅ Endpoint: Native, full support with real-time message tracking</li><li>❌ Postman: Limited support, requires workarounds</li></ul><p><strong>Performance Testing</strong></p><ul><li>✅ Endpoint: Built-in load testing and metrics</li><li>⚠️ Postman: Requires Newman CLI or external tools</li></ul><p><strong>Native macOS Experience</strong></p><ul><li>✅ Endpoint: Built with SwiftUI, native performance</li><li>❌ Postman: Electron-based, slower and heavier</li></ul><p><strong>Drag &amp; Drop Interface</strong></p><ul><li>✅ Endpoint: Full drag &amp; drop for requests and collections</li><li>⚠️ Postman: Limited drag &amp; drop functionality</li></ul><p><strong>Command Palette</strong></p><ul><li>✅ Endpoint: Cmd+P for quick navigation</li><li>❌ Postman: No command palette</li></ul><p><strong>Environment Variable Autocomplete</strong></p><ul><li>✅ Endpoint: Autocomplete suggestions when typing {{</li><li>❌ Postman: Manual typing only</li></ul><p><strong>Free Tier</strong></p><ul><li>✅ Endpoint: Generous free tier with core features</li><li>⚠️ Postman: More limited free tier</li></ul><p><strong>Memory Usage</strong></p><ul><li>✅ Endpoint: Lightweight, optimized for macOS</li><li>❌ Postman: Higher memory usage (Electron)</li></ul><h3>Real-World Use Cases</h3><h3>1. Real-Time Application Development</h3><p>When building a chat application or live dashboard, WebSocket testing is essential. Endpoint lets you:</p><ul><li>Connect to WebSocket endpoints</li><li>Send and receive messages in real-time</li><li>Monitor connection state</li><li>Debug message formats</li></ul><h3>2. API Performance Optimization</h3><p>Before deploying a new endpoint:</p><ul><li>Run load tests with 1000+ concurrent requests</li><li>Analyze response time distributions</li><li>Identify slow endpoints</li><li>Optimize based on data</li></ul><h3>3. Team Collaboration</h3><ul><li>Organize requests into collections</li><li>Share collections via export/import</li><li>Use environment variables for different stages</li><li>Maintain consistent testing workflows</li></ul><h3>The Technical Stack</h3><p>Endpoint is built with:</p><ul><li>SwiftUI for native macOS UI</li><li>Combine for reactive programming</li><li>URLSession for HTTP/WebSocket connections</li><li>Swift for performance</li></ul><p>This stack ensures:</p><ul><li>Fast startup times</li><li>Low memory footprint</li><li>Smooth user experience</li><li>Native macOS feel</li></ul><h3>What’s Free vs. Premium?</h3><p><strong>Free Forever:</strong></p><ul><li>All HTTP methods (GET, POST, PUT, DELETE, PATCH)</li><li>WebSocket support</li><li>Environment Variables</li><li>Drag &amp; Drop</li><li>Command Palette</li><li>Basic themes</li></ul><p><strong>Premium Features:</strong></p><ul><li>Export collections (JSON, Postman, Swagger)</li><li>Import collections (Swagger link)</li><li>Performance Testing</li><li>Premium themes</li><li>Priority support</li></ul><p>The core functionality is free. Premium features are for power users who need advanced export/import capabilities.</p><h3>Getting Started</h3><ol><li>Download Endpoint from the Mac App Store</li><li>Create your first collection</li><li>Add requests and start testing</li><li>Try WebSocket connections</li><li>Run performance tests</li></ol><h3>Why I Built This</h3><p>As a developer, I wanted a tool that:</p><ul><li>Works the way I work</li><li>Doesn’t get in my way</li><li>Includes features I actually need</li><li>Performs well on macOS</li></ul><p>Endpoint is the result of that vision.</p><h3>The Future of API Testing</h3><p>The API landscape is evolving:</p><ul><li>More real-time applications</li><li>Higher performance requirements</li><li>Better developer tools</li></ul><p>Endpoint is designed to grow with these needs. We’re constantly adding features based on developer feedback.</p><h3>Try Endpoint Today</h3><p>If you’re tired of:</p><ul><li>Slow, bloated API testing tools</li><li>Missing WebSocket support</li><li>Clunky interfaces</li><li>Performance limitations</li></ul><p>Endpoint might be for you.</p><p>Download <a href="https://apps.apple.com/tr/app/endpoint-http-client/id6755891816?mt=12">Endpoint</a> and see the difference a native macOS tool can make.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60c6355e3b42" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Native ile SQLite Çözümleri 2020 (Expo-CLI)]]></title>
            <link>https://medium.com/@enesfurkangenc/react-native-ile-sqlite-%C3%A7%C3%B6z%C3%BCmleri-2020-expo-cli-7613d781f0c4?source=rss-1346729d3d51------2</link>
            <guid isPermaLink="false">https://medium.com/p/7613d781f0c4</guid>
            <category><![CDATA[mühendislik]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[yazılım]]></category>
            <dc:creator><![CDATA[Enes Genç]]></dc:creator>
            <pubDate>Fri, 12 Jun 2020 20:13:40 GMT</pubDate>
            <atom:updated>2020-06-12T20:13:40.546Z</atom:updated>
            <content:encoded><![CDATA[<h3>React Native ile SQLite Çözümleri</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9iZUcMDBEF_XAUUt7xIPgg.png" /></figure><p>Herkese Selamlar,</p><p>Yakın zamanda React Native ile bir mobile uygulama geliştirdim. Bu süreçte Sqlite kullanma ihtiyacım vardı. Birçok döküman araştırdım herkesin çok farklı çözümleri vardı ve herkes bir şey söylemiş aslına bakarsınız karışmış olay. Ben bunu bir Türkçe döküman olsun ve güncel olsun diye sizler ile paylaşmak istedim. Eminim ki React Native ile geliştirme yapmak isteyen arkadaşlar Sqlite kullanma ihtiyacı duyucaklardır.</p><p>Geliştirme sürecinde ben <a href="https://docs.expo.io/">Expo</a> kullandım. React Native ile geliştirme yaparken ios ve android Native Module leri kullanım açısından gerçekten çok kullanışlı bir CLI. Deployment aşamaları da komple Expo ile yürüttüm. Belki bir daha ki yazıda buna yer verilebilir.</p><p>Öncelikle Expo-cli ile bir proje oluşturalım. Bunun için; expo init sqliteapp</p><p>diyerek başlıyoruz. Expo CLI dokuman için <a href="https://docs.expo.io/workflow/expo-cli/">buradan</a> ulaşabilirsiniz.</p><p>Ben şu şekilde başlıyorum önce Sqlite için Tablolarımı oluşturuyorum ayrı bir tool yardımıyla(DBeaver kullanıyorum). Sonrasında oluşturmuş olduğum Sqlite dosyasını uygulama içerisinde yüklenmesini sağlamak. Burada expo çok fazla kolaylık sağlıyor aslında. Sırasıyla aşama aşama gideceğim.</p><p>— Paketlerimizi yükleyelim;</p><pre>expo install expo-asset expo-file-system expo-splash-screen expo-sqlite</pre><p>— Paketlerimiz yüklendikten sonra proje Asset dizinine db dosyasını koyuyoruz;</p><pre>sqliteapp/asssets/db/data.db</pre><p>Projemize db dosyasını dizin olarak oluşturduk. Şimdi uygulama yüklenirken bu db dosyasını real time yüklenmesini sağlamakta. Ben burada React hooks kullanıyorum. Hook larımı yönetmek için ayrı bir dosyada tutuyorum.</p><pre>sqliteapp/src/hooks/useResources.tsx</pre><p>Dosyamızı oluşturduk.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f166e7d515fe3dd5f7839f019f4579f2/href">https://medium.com/media/f166e7d515fe3dd5f7839f019f4579f2/href</a></iframe><p>Burada kendi hook umuzu yazdık. Dosyalarının yüklenip yüklenmediğini bu şekilde kontrol edebileceğiz. Dosyalar yüklendikten sonra Splash Screen i hide moda çekeceğiz. Bu hook u uygulamızın App.tsx dosyasında çağırıyoruz.. Şu şekilde;</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/065a4dc501dede2452a3b7cd3139fa89/href">https://medium.com/media/065a4dc501dede2452a3b7cd3139fa89/href</a></iframe><p>Projemizin root dosyası bu şekilde. Ben burada React Navigation da çağırıyorum. Bottom Navigation kullanmıştım. Ben örnek olması açısından SELECT ve INSERT sorgularını yazacağım.</p><p>— SELECT</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d51a2703919e6916017dfae38f25be6f/href">https://medium.com/media/d51a2703919e6916017dfae38f25be6f/href</a></iframe><p>— INSERT<br>Burada ? ? ile yazılan yerlere data bind edebilirsiniz [] 10. satırda ki gibi içerisine yazılıyor.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/439d73c70a2d378ca78611336b1857c6/href">https://medium.com/media/439d73c70a2d378ca78611336b1857c6/href</a></iframe><p>Benim anlatacaklarım bu kadar arkadaşlar. Umarım projenizde Sqlite kullanırken size de yardımcı ve döküman olabilir. Sorularınız olursa bana ulaşabilirsiniz. Sizlere yardımcı olmaya çalışabilirim. React native ile geliştirdiğim proje de gerçirdiğim serüveni de bir story olarak yayınlamamı isterseniz onu yazabilirim. Uygulamanın oluşumu Play Store da publish etmek gibi süreçler hakkında bilgi verebilirim. Uygulama içerisinde para kazanmak Admob kullanımı gibi bilgiler hakkında süreçleri anlatabilirim. Geri dönüşlerinizi bekliyorum.</p><p>İyi çalışmalar! #Birliktelik</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7613d781f0c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Angular ve State Management(NgRx) Bölüm 1]]></title>
            <link>https://medium.com/@enesfurkangenc/angular-ve-state-management-ngrx-b%C3%B6l%C3%BCm-1-936d854a0e3a?source=rss-1346729d3d51------2</link>
            <guid isPermaLink="false">https://medium.com/p/936d854a0e3a</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[mühendislik]]></category>
            <category><![CDATA[yazılım]]></category>
            <category><![CDATA[ngrx]]></category>
            <category><![CDATA[angular]]></category>
            <dc:creator><![CDATA[Enes Genç]]></dc:creator>
            <pubDate>Sun, 11 Aug 2019 20:34:48 GMT</pubDate>
            <atom:updated>2019-08-11T20:38:28.679Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*948oB3xoCLH6jd8OmL18RQ.png" /></figure><p>Arkadaşlar merhaba. Bugün sizlere son bir buçuk senedir yazmaya çalıştığım Angular Framework üzerinden state management olayını anlatacağım. State management nedir diye soranlar <a href="http://atayahmet.com/2018/02/16/State-Management-Pattern-nedir-Neden-Kullanilir/">şuraya</a> göz atabilirler.</p><blockquote><strong>NgRx ne zaman kullanmalıyız?</strong></blockquote><p>Angular projenizde çok fazla kullanıcı etkileşimi ve çoklu veri kaynağı olan bir uygulama oluştururken NgRx’i kullanabilirsiniz.</p><blockquote><strong>NgRx ile gelen paketler nelerdir?</strong></blockquote><p><strong>— Store</strong></p><p>Store, Redux’tan ilham alan Açısal uygulamalar için RxJS destekli state yönetimidir. Store, Angular üzerine performans ve tutarlı uygulamalar yazmak için tasarlanmış kontrollü bir state konteyneridir. Basit bir store yapısı Action ve Reducerlardan oluşmaktadır.</p><p>Basit bir counter uygulaması yazalım</p><p>counter.actions.ts</p><p>Ngrx içerisinden createAction methoduyla bir action oluşturuyoruz ve o action reducer tetikliyor.</p><pre>import { createAction } from ‘@ngrx/store’; </pre><pre>export const increment = createAction(‘[Counter Component] Increment’); <br>export const decrement = createAction(‘[Counter Component] Decrement’); <br>export const reset = createAction(‘[Counter Component] Reset’);</pre><p>counter.reducer.ts</p><p>Ngrx içerisinde createReducer methoduyla bir reducer oluştuyoruz. Oluşturduğumuz reducer içerisinde bir action belirtiyoruz. Bu action reducer tetikliyor ve reducer harekete geçiyor. createReducer ilk parametre olarak başlangıç state alıyor. Sonrasında ‘on’ methoduyla ilk parametre action belirtiyoruz sonrasında state’e ekleme ve çıkarma işlemi yaptırıyoruz.</p><pre>import { createReducer, on } from ‘@ngrx/store’; </pre><pre>import { increment, decrement, reset } from ‘./counter.actions’;</pre><pre>export const initialState = 0; </pre><pre>export const counterReducer = createReducer(initialState, </pre><pre>  on(increment, state =&gt; state + 1),</pre><pre>  on(decrement, state =&gt; state — 1), </pre><pre>  on(reset, state =&gt; 0), <br>);</pre><p>app.module.ts</p><p>Store Module’müzü burada ekliyoruz ve içerisine reducer ekliyoruz.</p><pre>import { BrowserModule } from ‘@angular/platform-browser’;</pre><pre>import { NgModule } from ‘@angular/core’;</pre><pre>import { AppComponent } from ‘./app.component’;</pre><pre>import { StoreModule } from ‘@ngrx/store’;</pre><pre>import { counterReducer } from ‘./counter.reducer’;</pre><pre>@NgModule({</pre><pre>declarations: [AppComponent],</pre><pre>imports: [</pre><pre>  BrowserModule,</pre><pre>  StoreModule.forRoot({ count: counterReducer })</pre><pre>],</pre><pre>providers: [],</pre><pre>bootstrap: [AppComponent],</pre><pre>})</pre><pre>export class AppModule {}</pre><p>counter.component.ts</p><p>Component içerisinde count statemizi almak için öncelikle app.module içerisinde belirttiğimiz isimle select ediyoruz. Sonrasında increment, decrement ve reset action’larını çağırıyoruz.</p><pre>import { Component } from ‘@angular/core’;</pre><pre>import { Store, select } from ‘@ngrx/store’;</pre><pre>import { Observable } from ‘rxjs’;</pre><pre>import { increment, decrement, reset } from ‘../counter.actions’;</pre><pre>@Component({</pre><pre>selector: ‘app-counter’,</pre><pre>templateUrl: ‘./counter.component.html’,</pre><pre>styleUrls: [‘./counter.component.css’],</pre><pre>})</pre><pre>export class CounterComponent {</pre><pre>count$: Observable&lt;number&gt;;</pre><pre>constructor(private store: Store&lt;{ count: number }&gt;) {</pre><pre>  this.count$ = store.pipe(select(‘count’));</pre><pre> }</pre><pre>increment() {</pre><pre>  this.store.dispatch(increment());</pre><pre> }</pre><pre>decrement() {</pre><pre>  this.store.dispatch(decrement());</pre><pre> }</pre><pre>reset() {</pre><pre>   this.store.dispatch(reset());</pre><pre> }</pre><pre>}</pre><p>counter.component.html</p><pre>&lt;button id=”increment” (click)=”increment()”&gt;Increment&lt;/button&gt; </pre><pre>&lt;div&gt;Current Count: {{ count$ | async }}&lt;/div&gt; </pre><pre>&lt;button id=”decrement” (click)=”decrement()”&gt;Decrement&lt;/button&gt; </pre><pre>&lt;button id=”reset” (click)=”reset()”&gt;Reset Counter&lt;/button&gt;</pre><p>İkinci bölümde Ngrx içerindeki Effects, Selector ve Entity module’lerinden bahsedeceğim. Herkese iyi çalışmalar.</p><p><a href="https://ngrx.io/guide/store">https://ngrx.io/guide/store</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=936d854a0e3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>