<?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 Kaan Küreli on Medium]]></title>
        <description><![CDATA[Stories by Kaan Küreli on Medium]]></description>
        <link>https://medium.com/@kaankureli?source=rss-36f53544efc3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Kaan Küreli on Medium</title>
            <link>https://medium.com/@kaankureli?source=rss-36f53544efc3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 17:09:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kaankureli/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[Redux and Firebase based ToDo App]]></title>
            <link>https://medium.com/@kaankureli/redux-and-firebase-based-todo-app-82aebbb25348?source=rss-36f53544efc3------2</link>
            <guid isPermaLink="false">https://medium.com/p/82aebbb25348</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[redux]]></category>
            <dc:creator><![CDATA[Kaan Küreli]]></dc:creator>
            <pubDate>Sat, 04 Apr 2020 15:43:14 GMT</pubDate>
            <atom:updated>2020-04-04T17:31:12.969Z</atom:updated>
            <content:encoded><![CDATA[<h3>Powerful NPM Packages for ToDo React App</h3><blockquote>We don’t need to always be <em>reinventing the wheel</em> and writing code that may already exist. As said in phrase “<strong>No need to discover America again.”</strong></blockquote><p>I wanted to write down a npm packages I used while I was building ToDO react app which is based on Google Firebase for authentication, Firestore for database and functions for notification system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IormH_68tZBUmFd7CUCneg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f40rONtkNKy1BNzVKZBuhw.png" /><figcaption>Left Image: Homepage of app where is build for public usage and you can see notifications about last updates. Right Image: Personal ToDo List page you can reach there after you login.</figcaption></figure><p>Programming is all about providing a solution to a problem and implementing it. When we look at the number of developers on earth, we can see that not only solutions are produced for these problems, but also that these solutions are tested and developed so using this solutions are way better than anything we could write ourselves in a short period of time.</p><p>As a javascript developer, I can say that the great power of javascript is based on open source packages. I don’t want you to think it’s about laziness, it is more than just copy&amp;paste. 🤔</p><p>Npm is a package manager for JavaScript. This means that npm works with your JavaScript project directories via the command line, allowing you to install packages of preexisting code.</p><p>After short introduction, lets start to review packages I used in my first Firebase application. I will give short brief information about packages and libraries I used.</p><p>There is a link in the below for live preview of website, don’t hesitate to add ToDo or just leave message at homepage where is build for public usage. Also you can use personal todo page after you sign-up and login!</p><p><strong>Project Repo:</strong> <a href="https://github.com/kkureli/ToDoApp-Firebase"><strong>https://github.com/kkureli/ToDoApp-Firebase</strong></a></p><p><strong>Live: </strong><a href="https://todo-app-38640.web.app/"><strong>https://todo-app-38640.web.app/</strong></a></p><ol><li><strong>Redux</strong>: Redux is designed to manage data access in one place and solve the problem arising from state transfer. In Redux, all state data is kept in a place called store. Thus, there is no need for state transfer from top-level component to low-level component. Each component provides access to the application state through the store.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/1*45mgUMVEkh1X7IdWC1y9fg.png" /><figcaption>Redux state management cycle</figcaption></figure><pre><strong><em>import { createStore, applyMiddleware, compose } from “redux”;</em></strong></pre><pre><strong><em>import thunk from “redux-thunk”;</em></strong></pre><p>createStore : It is not difficult to guess what it is used for. It creates a Redux store with store you supply.</p><p>applyMiddleware: <strong>Redux</strong> <strong>Thunk</strong> <strong>middleware</strong> allows you to write action creators that return a function instead of an action. Because of it works asynchronous, this is handy for a variety of tasks, such as using Firebase and Firestore.</p><p>2. <strong>React-Redux: </strong>It is used for b<em>inding redux with react app. Thanks to provider, we can use our global store which we created with createStore in components.</em></p><pre><strong><em>import</em> { Provider } <em>from</em> “react-redux”; </strong></pre><p>3. <strong>Redux-Firestore</strong>: It provides continuous listening and follow-up for Firestore database, and update the local state in case of change.</p><pre><strong><em>import</em> {reduxFirestore, createFirestoreInstance, getFirestore} <em>from </em>“redux-firestore”;</strong></pre><p>4. <strong>React-Redux-Firebase: </strong>From official document: “Auth, Storage, and RTDB interactions still occur within react-redux-firebase, while redux-firestore handles attaching listeners and updating state for Firestore.”</p><pre><strong><em>import</em> { ReactReduxFirebaseProvider, getFirebase } <em>from</em> &quot;react-redux-firebase&quot;;</strong></pre><p>That’s how i connect all of them:</p><pre><strong><em>const</em> store <em>= </em>createStore(rootReducer, compose(applyMiddleware(thunk.withExtraArgument({getFirebase, getFirestore})), reduxFirestore(firebase, config)));</strong></pre><p>and usage of providers:</p><pre><strong><em>const</em> profileSpecificProps <em>=</em> {</strong></pre><pre><strong>userProfile: &quot;users&quot;,</strong></pre><pre><strong>useFirestoreForProfile: true,</strong></pre><pre><strong>enableRedirectHandling: false,</strong></pre><pre><strong>resetBeforeLogin: false,</strong></pre><pre><strong>};</strong></pre><pre><strong><em>const</em> rrfProps <em>=</em> {</strong></pre><pre><strong>firebase,</strong></pre><pre><strong>config: config,</strong></pre><pre><strong>dispatch: store.dispatch,</strong></pre><pre><strong>createFirestoreInstance,</strong></pre><pre><strong>config: profileSpecificProps,</strong></pre><pre><strong>};</strong></pre><pre><strong>ReactDOM.render(</strong></pre><pre><strong>&lt;Provider store<em>=</em>{store}&gt;</strong></pre><pre><strong>&lt;ReactReduxFirebaseProvider {<em>…</em>rrfProps}&gt;</strong></pre><pre><strong>&lt;App&gt;&lt;/App&gt;</strong></pre><pre><strong>&lt;/ReactReduxFirebaseProvider&gt;</strong></pre><pre><strong>&lt;/Provider&gt;,</strong></pre><pre><strong>document.getElementById(“root”)</strong></pre><pre><strong>);</strong></pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82aebbb25348" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>