<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>React on Janik von Rotz</title>
    <link>https://janikvonrotz.ch/tags/react/</link>
    <description>Recent content in React on Janik von Rotz</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 26 Sep 2019 10:31:27 +0200</lastBuildDate>
    <atom:link href="https://janikvonrotz.ch/tags/react/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Build an Apollo Graphql user authentication for your React app - part 3</title>
      <link>https://janikvonrotz.ch/2019/09/26/build-an-apollo-graphql-user-authentication-for-your-react-app-part-3/</link>
      <pubDate>Thu, 26 Sep 2019 10:31:27 +0200</pubDate>
      <guid>https://janikvonrotz.ch/2019/09/26/build-an-apollo-graphql-user-authentication-for-your-react-app-part-3/</guid>
      <description>&lt;p&gt;This is the final post of my GraphQL Auth series. Before reading this post checkout &lt;a href=&#34;https://janikvonrotz.ch/2019/08/27/build-an-apollo-graphql-user-authentication-for-your-react-app-part-1&#34;&gt;post 1&lt;/a&gt; and &lt;a href=&#34;https://janikvonrotz.ch/2019/08/29/build-an-apollo-graphql-user-authentication-for-your-react-app-part-2&#34;&gt;post 2&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;As mentioned in my last post we need to polish our authentication solution. First we wanna ensure that the JWT token expires. Second, I think the &lt;code&gt;isAuthenticated&lt;/code&gt; directive is insufficient for proper permission management on our types, queries and mutations. We need a role based solution. While the first point is simple to implement, the second is more complex and definitely requires walking through the previous posts.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Build an Apollo Graphql user authentication for your React app - part 2</title>
      <link>https://janikvonrotz.ch/2019/08/29/build-an-apollo-graphql-user-authentication-for-your-react-app-part-2/</link>
      <pubDate>Thu, 29 Aug 2019 19:34:07 +0200</pubDate>
      <guid>https://janikvonrotz.ch/2019/08/29/build-an-apollo-graphql-user-authentication-for-your-react-app-part-2/</guid>
      <description>&lt;p&gt;In my &lt;a href=&#34;https://janikvonrotz.ch/2019/08/27/build-an-apollo-graphql-user-authentication-for-your-react-app-part-1&#34;&gt;last post&lt;/a&gt; we built a Graphql API that handles user authentication and authorization. In particular we added a &lt;code&gt;loginUser&lt;/code&gt; query that returns a JWT token. This token can be used to access restricted resources.&#xA;In this post I will show what the implementation looks like on Reacts side.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Build an Apollo Graphql user authentication for your React app - part 1</title>
      <link>https://janikvonrotz.ch/2019/08/27/build-an-apollo-graphql-user-authentication-for-your-react-app-part-1/</link>
      <pubDate>Tue, 27 Aug 2019 18:35:12 +0200</pubDate>
      <guid>https://janikvonrotz.ch/2019/08/27/build-an-apollo-graphql-user-authentication-for-your-react-app-part-1/</guid>
      <description>&lt;p&gt;I am currently building an &lt;a href=&#34;https://www.apollographql.com/docs/apollo-server/&#34;&gt;Apollo Graphql&lt;/a&gt; API and a &lt;a href=&#34;https://reactjs.org/&#34;&gt;React&lt;/a&gt; web application. The application requires a user authentication functionality in order to enforce access restrictions on the Graphql endpoint. Apollo Graphql does not provide an out-of-the-box-solution and therefore I would like to present my solution.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Raspberry Pi thermometer that connects from anywhere via broadband</title>
      <link>https://janikvonrotz.ch/2018/11/16/raspberry-pi-thermometer-that-connects-anywhere-via-broadband/</link>
      <pubDate>Fri, 16 Nov 2018 20:00:23 +0200</pubDate>
      <guid>https://janikvonrotz.ch/2018/11/16/raspberry-pi-thermometer-that-connects-anywhere-via-broadband/</guid>
      <description>&lt;p&gt;This tutorial is about how to build an online accessible thermometer using the Raspberry Pi 3 B-model.&lt;/p&gt;&#xA;&lt;p&gt;We will start by buying the electronic components and finish with a chart showing the temperature data.&lt;/p&gt;&#xA;&lt;p&gt;Walking through the tutorial requires basic knowledge in working with linux and advanced knowledge in building web applications. Whereas the web application part is optionally.&lt;/p&gt;&#xA;&lt;p&gt;Using a mobile broadband connection and a thermo sensor our Raspberry Pi will measure the temperature and save it to a graphql server.&lt;/p&gt;&#xA;&lt;p&gt;Using react and a graphql client library we will create a chart with the temperature data.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The most simple access control for your Meteor React app</title>
      <link>https://janikvonrotz.ch/2017/05/12/the-most-simple-access-control-for-your-meteor-react-app/</link>
      <pubDate>Fri, 12 May 2017 09:46:48 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2017/05/12/the-most-simple-access-control-for-your-meteor-react-app/</guid>
      <description>&lt;p&gt;For my last Meteor React app I&amp;rsquo;ve designed the most simple role based access control. The basic idea is that users can have multiple roles and every action possible is only allowed by a specified set of roles. For my Meteor React app the following scenarios were considered:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Debounce a redux dispatch method in a react component</title>
      <link>https://janikvonrotz.ch/2017/04/20/debounce-a-redux-dispatch-method-in-a-react-component/</link>
      <pubDate>Thu, 20 Apr 2017 12:46:18 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2017/04/20/debounce-a-redux-dispatch-method-in-a-react-component/</guid>
      <description>&lt;p&gt;Tightly connected reactivity in a react application has the side effect that it is sometimes necessary to delay the execution of a method. Assume you have a search input field that filters elements while typing, every field input creates a search request. In order to get rid of unnecessary search requests you have to wait until a user has finished typing and then start the search. To make this work without a search button, you have to intercept repeating executions (debounce) of the search method within a specified time frame and delay the execution of the last call.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Make your Redux React app multilingual</title>
      <link>https://janikvonrotz.ch/2017/03/02/make-your-redux-react-app-multilingual/</link>
      <pubDate>Thu, 02 Mar 2017 12:51:10 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2017/03/02/make-your-redux-react-app-multilingual/</guid>
      <description>&lt;p&gt;For my current React app in development I&amp;rsquo;m using Redux to manage the client state. As this is the first time using Redux I&amp;rsquo;m not quite sure what to put in the store yet. But I&amp;rsquo;ve decided to give the multilingual labels and wordings a try. Below you&amp;rsquo;ll find a simple approach on how I made my app multilingual using the Redux client state to store the translated content. I assume you are familiar with Redux and React.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Reactive subscriptions with Apollo and React</title>
      <link>https://janikvonrotz.ch/2016/11/28/reactive-subscriptions-with-apollo-and-react/</link>
      <pubDate>Mon, 28 Nov 2016 12:27:08 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2016/11/28/reactive-subscriptions-with-apollo-and-react/</guid>
      <description>&lt;p&gt;Apollo server and client support real-time subscriptions with web sockets. Compared to Meteor&amp;rsquo;s out of the box real-time communication this is a lot more difficult to set up. With this short tutorial I&amp;rsquo;ll give you an example of how you can get a simple reactive subscriptions into your Apollo/React app. The idea is that you use real-time communication for a specific case only, f.g. sending notifications. We will accomplish this in five steps.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Install project requirements.&lt;/li&gt;&#xA;&lt;li&gt;Setup the server schema.&lt;/li&gt;&#xA;&lt;li&gt;Add server resolvers.&lt;/li&gt;&#xA;&lt;li&gt;Setup the client subscription.&lt;/li&gt;&#xA;&lt;li&gt;Modify a component to receive data from a subscription.&lt;/li&gt;&#xA;&lt;/ol&gt;</description>
    </item>
    <item>
      <title>Graphql with Apollo, Meteor and React</title>
      <link>https://janikvonrotz.ch/2016/10/09/graphql-with-apollo-meteor-and-react/</link>
      <pubDate>Sun, 09 Oct 2016 19:39:30 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2016/10/09/graphql-with-apollo-meteor-and-react/</guid>
      <description>&lt;p&gt;For my last project I had to build a web application to administrate a MongoDB database. Due to using Meteor quite a lot I heard about Graphql and the Apollostack. Graphql, which is a specification done by Facebook engineers, promises to be the better REST API (which I hope it is). I became curious and decided the build the server API with Apollo. First I tried to evade using the Meteor as build system as I don&amp;rsquo;t want to get too accustomed to this full-stack ecosystem. However, building a live-reload server and client build system in ES6 with Node.js, Babel and Webpack was simply too much work compared to building this simple web app. So in result this was my stack:&lt;/p&gt;</description>
    </item>
    <item>
      <title>OLMOTO - An app built by beginners</title>
      <link>https://janikvonrotz.ch/2016/08/02/olmoto-an-app-built-by-beginners/</link>
      <pubDate>Tue, 02 Aug 2016 12:30:05 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2016/08/02/olmoto-an-app-built-by-beginners/</guid>
      <description>&lt;p&gt;One month ago I started teaching a friend the basics of JavaScript with Meteor, Mantra and React.&#xA;Together we&amp;rsquo;ve built an app to create and share events with friends. It was an awesome experience. Yesterday we launched a private version on heroku. For us this was a great accomplishment. I learned a lot from this project and thought about sharing it with world.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://codeberg.org/janikvonrotz/olmoto&#34;&gt;https://codeberg.org/janikvonrotz/olmoto&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Some technical features and challenges we solved:&lt;/p&gt;</description>
    </item>
    <item>
      <title>React image loader with a spinner</title>
      <link>https://janikvonrotz.ch/2016/07/23/react-image-loader-with-a-spinner/</link>
      <pubDate>Sat, 23 Jul 2016 04:19:06 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2016/07/23/react-image-loader-with-a-spinner/</guid>
      <description>&lt;p&gt;hey there, I&amp;rsquo;ve spent as usual a lot of time with React, Mantra and Meteor. While building a simple app I checked out the new Meteor standard for file handling &lt;a href=&#34;https://github.com/VeliovGroup/Meteor-Files&#34;&gt;Meteor-Files&lt;/a&gt;. It works great, I really recommend this awesome package. But that&amp;rsquo;s not what I want to show you. The app I&amp;rsquo;m working on loads pictures form the dropbox api. Downloading the pictures always takes a while. To make sure the user doesn&amp;rsquo;t get impatient the app is now displaying a spinner when the image is loading. I would to like to show you how I&amp;rsquo;ve built this image loader and spinner component.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Meteor productive deployment blank page</title>
      <link>https://janikvonrotz.ch/2016/06/21/meteor-productive-deployment-blank-page/</link>
      <pubDate>Tue, 21 Jun 2016 10:16:07 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2016/06/21/meteor-productive-deployment-blank-page/</guid>
      <description>&lt;p&gt;First some background. I&amp;rsquo;ve built a Meteor app and decided to deploy it to Heroku. There are many short and simple guides out there on how to do that. As I did so and opened the App for the first on Heroku I simply received a blank page. Where did my javascript code go? Heroku logs didn&amp;rsquo;t tell much.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Meteor and React: Markdown editor with draft.js and marked.js</title>
      <link>https://janikvonrotz.ch/2016/04/05/meteor-and-react-markdown-editor-with-draft-js-and-marked-js/</link>
      <pubDate>Tue, 05 Apr 2016 09:15:29 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2016/04/05/meteor-and-react-markdown-editor-with-draft-js-and-marked-js/</guid>
      <description>&lt;p&gt;Recently I switched my current project from Meteor 1.2 to 1.3. While doing so I reworked the code for my markdown editor. When created the markdown editor in the first place I learned about the necessity of a solid platform to build web editors. So this time I used draft.js as base. Facebook open sourced draft.js a few months ago. They use it almost everywhere on Facebook page, so it should be well-tested.&lt;/p&gt;&#xA;&lt;p&gt;The markdown editor you&amp;rsquo;re going to build has these features:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Instant html preview rendering&lt;/li&gt;&#xA;&lt;li&gt;Support for GitHub flavoured syntax and markdown tables&lt;/li&gt;&#xA;&lt;li&gt;Drag and drop file upload.&lt;/li&gt;&#xA;&lt;li&gt;Copy and paste file upload.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Optionally: File upload with Meteor and FS Collection.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Meteor and React: Fullscreen Viewer Component</title>
      <link>https://janikvonrotz.ch/2016/03/08/meteor-and-react-fullscreen-viewer-component/</link>
      <pubDate>Tue, 08 Mar 2016 15:51:29 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2016/03/08/meteor-and-react-fullscreen-viewer-component/</guid>
      <description>&lt;p&gt;Another post as result of my Meteor React experience.&#xA;This is a simple approach to build a fullscreen viewer for any React component.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Meteor and React: Bootstrap Modal</title>
      <link>https://janikvonrotz.ch/2016/03/05/meteor-and-react-bootstrap-modal/</link>
      <pubDate>Sat, 05 Mar 2016 12:42:05 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2016/03/05/meteor-and-react-bootstrap-modal/</guid>
      <description>&lt;p&gt;I would like to share my great experience I had with Meteor and React. This time I want to show how I&amp;rsquo;ve built a bootstrap modal component. There are already a lot of solutions out there, but none of them were suitable.&lt;/p&gt;&#xA;&lt;p&gt;Here&amp;rsquo;s how you can get a neat bootstrap modal for your Meteor React project.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
