<?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 Oxygenna on Medium]]></title>
        <description><![CDATA[Stories by Oxygenna on Medium]]></description>
        <link>https://medium.com/@oxygenna?source=rss-77869abcf90e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*McGsfC-YU-EJiC7MvVVO2g.png</url>
            <title>Stories by Oxygenna on Medium</title>
            <link>https://medium.com/@oxygenna?source=rss-77869abcf90e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 03:13:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@oxygenna/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[OS buttons, on steroids]]></title>
            <link>https://medium.com/@oxygenna/os-buttons-on-steroids-a986b360bace?source=rss-77869abcf90e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a986b360bace</guid>
            <dc:creator><![CDATA[Oxygenna]]></dc:creator>
            <pubDate>Tue, 19 Jun 2018 14:52:29 GMT</pubDate>
            <atom:updated>2018-06-19T14:52:29.666Z</atom:updated>
            <content:encoded><![CDATA[<p>Was thinking that OS buttons would provide more feedback to user and would be way more fun if we could add some character in them: Close : the angry guy Minimize: the shy one Maximize: the pumped up guy website | twitter | facebook</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcards.uplabs.com%2Fcards%2F180400%2Fpost%3Fv%3D1&amp;url=https%3A%2F%2Fwww.uplabs.com%2Fposts%2Fos-buttons-on-steroids&amp;image=https%3A%2F%2Fassets.materialup.com%2Fuploads%2F0c6157b1-fb1f-488d-93a2-5b7ab1ea1104%2Fpreview.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=uplabs" width="480" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/380f8b487922b58e23340bae8ded0cf9/href">https://medium.com/media/380f8b487922b58e23340bae8ded0cf9/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a986b360bace" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Real-time cryptocurrency visualisations using React, Websockets and ChartJS]]></title>
            <link>https://medium.com/@oxygenna/real-time-cryptocurrency-visualisations-using-react-websockets-and-chartjs-e4a76132a862?source=rss-77869abcf90e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4a76132a862</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Oxygenna]]></dc:creator>
            <pubDate>Wed, 06 Jun 2018 11:56:31 GMT</pubDate>
            <atom:updated>2018-06-06T11:56:31.965Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_a5VibdpdTmsZQH8uuOf7Q.jpeg" /></figure><p>As cryptocurrency continues to rise in prominence, so do the needs for accurate monitoring of related information. In this tutorial we will create stunning real-time visualisations of cryptocurrency market data updates using the most popular libraries and technologies.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodesandbox.io%2Fembed%2Fwq5jwmkw8k&amp;url=https%3A%2F%2Fcodesandbox.io%2Fs%2Fwq5jwmkw8k&amp;image=https%3A%2F%2Fcodesandbox.io%2Fapi%2Fv1%2Fsandboxes%2Fwq5jwmkw8k%2Fscreenshot.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codesandbox" width="1000" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/ac453d240df5765307dd5ad30b7d0ae0/href">https://medium.com/media/ac453d240df5765307dd5ad30b7d0ae0/href</a></iframe><p>In this tutorial we will be connecting a <em>ReactJS</em> app to a <a href="https://www.gdax.com/">live Websocket feed</a> in order to gain access to real-time market data. The data will be rendered on screen using a charting Javascript library. The end result can be seen above.</p><p>We will be using <a href="https://github.com/facebook/create-react-app">create-react-app</a> in order to scaffold a React demo app quickly and easily. Basic <em>ReactJS</em> and <em>NPM</em> knowledge is assumed for the reader.</p><p>First, open a terminal and type the following commands in order to create your React app and start a local server:</p><pre>npx create-react-app my-app<br>cd my-app<br>npm start</pre><p>Having created your app, it’s time to install the dependencies and libraries that we will use for our charting app. For our purposes the very popular <a href="http://www.chartjs.org/">ChartJS</a> library was chosen. We will also install a <a href="https://github.com/jerairrest/react-chartjs-2">wrapper</a> for <em>ChartJS</em> in order to make it easier to use with <em>React</em>. Last but not least, we will use <a href="https://material-ui.com/">Material UI</a> in order to style our chart. Using your terminal, type the following under your new app’s directory:</p><pre>npm install chart.js react-chartjs-2 <a href="http://twitter.com/material">@material</a>-ui/core — save</pre><p>Once the dependencies are installed, we will have to add the necessary files to our project. We will need 3 files under the src directory of our app:</p><ul><li><em>index.js</em>: Bootstraps React and creates a Material theme for our app. Also inserts our application component to the dom.</li><li><em>app.js</em>: Main application component. Handles the application logic. Connects to the Websocket feed and passes the received market data to the nested charting component described below.</li><li><em>chart.js</em>: Charting component. Renders a chart using the data passed to it from the application component</li></ul><p>Now that we have a grasp of how our file structure looks, lets take a deeper dive into the details of each file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3e53ada52be865fd2e1fe2a8fc8ce4ba/href">https://medium.com/media/3e53ada52be865fd2e1fe2a8fc8ce4ba/href</a></iframe><p>The purpose of <em>index.js</em> is to bootstrap our application. The <em>MuiThemeProvider </em>is used to inject our Material theme into the application components. All <em>MuiThemeProvider’s</em> components will have the theme passed down to them. That means that our <em>App</em> component is now themeable! <br> Furthermore, passing arguments to the <em>createMuiTheme</em> function allows one to customise the generated theme. For verbosity we did not, but those interested can find more information <a href="https://material-ui.com/customization/themes/">here</a>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4877cff8684d8c90ecda7f51ebd6b082/href">https://medium.com/media/4877cff8684d8c90ecda7f51ebd6b082/href</a></iframe><p>Let’s break down the above code into easily digestible bits.<br>Our application component stores the chart configuration and data in it’s own state. The data are updated through the Websocket connection and eventually passed down as props to the chart component that handles the rendering. Every time the app gets new data the state gets updated with the new data, triggering a re-rendering of the chart.</p><p>The following code describes our application’s state structure:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d6a8dbe67f0056e43f9c902367aed139/href">https://medium.com/media/d6a8dbe67f0056e43f9c902367aed139/href</a></iframe><p>Two things of interest in the above code:</p><ul><li>Notice that the data array is initially empty. It will get gradually updated once the app establishes a connection to the Websocket feed.</li><li>We set the chart colours in the same dataset object that holds our data. The colours are coming from the Material theme that we created in our <em>index.js</em> file</li></ul><p>Now that we configured how our chart is going to look, it’s time to connect to the feed and get actual data. The code below handles connecting to and disconnecting from the feed, as well as updating the app’s state with the newly fetched data:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/87421b317fb2a9994383d73d9e3148ae/href">https://medium.com/media/87421b317fb2a9994383d73d9e3148ae/href</a></iframe><p>The <em>subscribe</em> object configures the type of connection we want to establish. <em>GDAX</em> feed also needs to know which cryptocurrency updates it needs to send back to us. In our demo we only request the latest bitcoin values in US dollars, but we could request multiple values here.</p><p>On every data update from the <a href="https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_client_applications">Websocket</a>, we create a copy of the <em>lineChartData</em> state object, we push the new data to it, and re-save it. Every time we call <em>setState</em> our chart is re-rendered!</p><p>Last but not least, once our app component unmounts, we close the connection to the <em>GDAX</em> feed.</p><p>The rendering function is pretty straightforward. The chart will appear inside a container with a fixed height. Notice that as we mentioned before, the state objects that configure the chart are passed as props to the chart component:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1c98c16c51fccb5abdd42518ea0071f1/href">https://medium.com/media/1c98c16c51fccb5abdd42518ea0071f1/href</a></iframe><p>The chart component turns out to be quite simple! It’s a presentational component, which means that it just renders whatever the props passed to it dictate, without having it’s own state. Every time it’s props change, a re-render is triggered:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5a238034069f350d47cbbde78fb2849c/href">https://medium.com/media/5a238034069f350d47cbbde78fb2849c/href</a></iframe><p>You can view all the source code <a href="https://github.com/harconst/Cryptocurrency-charts">here on GitHub</a>.</p><p>That was it! We hope you enjoyed this tutorial and find it helpful. Implementations of the functionality demonstrated in this tutorial can be found in our latest admin template <a href="https://themeforest.net/item/portal-angular-react-html-material-admin-template/21513258?s_rank=1">Portal</a>, which includes Angular, React and HTML admin panel templates. Take a look!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4a76132a862" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Knowledge Base — Chat Widget]]></title>
            <link>https://medium.com/@oxygenna/knowledge-base-chat-widget-73581ad1fd65?source=rss-77869abcf90e------2</link>
            <guid isPermaLink="false">https://medium.com/p/73581ad1fd65</guid>
            <dc:creator><![CDATA[Oxygenna]]></dc:creator>
            <pubDate>Sat, 02 Jun 2018 17:44:54 GMT</pubDate>
            <atom:updated>2018-06-02T17:44:54.955Z</atom:updated>
            <content:encoded><![CDATA[<p>Chatting with the agent animation website | twitter | facebook</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcards.uplabs.com%2Fcards%2F176607%2Fpost%3Fv%3D1&amp;url=https%3A%2F%2Fwww.uplabs.com%2Fposts%2Fknowledge-base-chat-widget&amp;image=https%3A%2F%2Fassets.materialup.com%2Fuploads%2Fe0aa60bc-2770-48ab-b661-79d75d75077a%2Fpreview.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=uplabs" width="480" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/c3968d44bff154d01183c2c9d745490e/href">https://medium.com/media/c3968d44bff154d01183c2c9d745490e/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73581ad1fd65" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Connecting Angular 6 to WordPress]]></title>
            <link>https://itnext.io/connecting-angular-6-to-wordpress-ee0055686a70?source=rss-77869abcf90e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee0055686a70</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[web-design]]></category>
            <dc:creator><![CDATA[Oxygenna]]></dc:creator>
            <pubDate>Wed, 30 May 2018 11:16:42 GMT</pubDate>
            <atom:updated>2018-06-04T10:23:33.082Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EfMYu3d00zeR3qFjI5iWTA.jpeg" /><figcaption>Angular and WordPress</figcaption></figure><p>We love Angular and we also love WordPress. So lets make them friends forever.</p><p>In this tutorial we will create a new Angular 6 application, connect it to a WordPress site and make a nice Material Design blog list page of it’s posts.</p><p>So let’s get started and use the <a href="https://cli.angular.io/">Angular CLI</a> to spin up a new app.</p><h4>Creating the Angular app</h4><pre>ng new angular-wordpress-api --style scss</pre><p>This will create us a new shiny app that uses Sass for it’s styling! But we will still need to install <a href="https://material.angular.io/">Angular Material</a> so we can make our app to look nice, fortunately as of Angular 6 this is super easy using the CLI.</p><pre>ng add @angular/material</pre><p>Next up we will add <a href="https://github.com/angular/flex-layout">Angular Flex Layout</a> so we can make a nice grid of our posts. <em>As of 29th May 2018 Flex Layout isn’t ready for ng add yet so we will use good old npm for now</em></p><pre>npm i --save <a href="http://twitter.com/angular/flex-layout">@angular/flex-layout</a>@6.0.0-beta.15</pre><p>Now we have laid the groundwork, we can start creating some code. So open up the new app in your favourite code editor and let’s get cracking.</p><h4>Importing Material Modules.</h4><p>Let’s import some Material Components that we can use to make the app look great. Create a new file in the src/app folder and name it app-material.module.ts</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/36c6e2dc56c35f8c002b12c535cebd02/href">https://medium.com/media/36c6e2dc56c35f8c002b12c535cebd02/href</a></iframe><p>Then goto your app.module.ts file and add this module to your app imports.</p><pre>imports: [<br>  BrowserModule,<br>  BrowserAnimationsModule,<br>  AppMaterialModule  <br>],</pre><h4>Import Flex module</h4><p>We should also import the Flex Layout module into app.module.ts, this will help us to create a grid of the posts.</p><pre>import { FlexModule } from ‘@angular/flex-layout’;</pre><p>Make sure this is added to your app imports</p><pre>imports: [<br>  BrowserModule,<br>  BrowserAnimationsModule,<br>  AppMaterialModule,<br>  FlexModule<br>],</pre><h4>Getting some content from WordPress</h4><p>In order to get some data from WordPress we will first need to add HTTP capability to our app, we can do this by adding the Angular HttpClient module.</p><p>Open your app.module.ts and add the following</p><pre>import { HttpClientModule } from &#39;@angular/common/http&#39;;</pre><p>Then add this to your imports</p><pre>imports: [<br>  BrowserModule,<br>  BrowserAnimationsModule,<br>  AppMaterialModule,<br>  FlexModule,<br>  HttpClientModule<br>],</pre><p>Next we will create a service that will handle fetching the post data, this is again simplified by using the Angular CLI</p><pre>ng generate service wordpress</pre><p>This will generate a new service file wordpress.service.ts, add the following code to this file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c23188dff0db2e573a2c24581135ccd8/href">https://medium.com/media/c23188dff0db2e573a2c24581135ccd8/href</a></iframe><p>In this file we create a simple function getPosts that will use the HttpClient to fetch posts from one of our <a href="http://www.oxygenna.com/">WordPress site</a>, this function will return an Observable of posts. We added a per_page parameter to only grab the latest 6 posts and added ?_embed to the url, this makes sure that the WordPress API will also include the url to the post featured image.</p><h4>Using our posts data to create a blog list</h4><p>Next up we want to put that shiny new service to good use and display the results.</p><p>So lets change the main app component to show a 3x2 grid of the posts from the WordPress service.</p><p>First of all lets change the app.component.ts file to use our service.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a3a803517fb46dbe3ad92ea797565b62/href">https://medium.com/media/a3a803517fb46dbe3ad92ea797565b62/href</a></iframe><p>So what is going on here?</p><p>We created a new observable variable called posts$, this is going to store the list of posts we are going to fetch from the API using the WordpressService.</p><p>We will use the async pipe to subscribe to this Observable in our app.component.html view file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/de2c4442237c18f22e6caaf91c49782e/href">https://medium.com/media/de2c4442237c18f22e6caaf91c49782e/href</a></iframe><p>Here you can see we use the Material components to build a simple blog list page. We first add a toolbar with Blog List as it’s title. Next we add a page wrapper div to add some padding. Next comes the Flexy part, we use Angular Flex to create a row layout that wraps and adds a 16px gap between each element.</p><p>Inside the Flex Layout div we use Angular Material Card and loop through each post to create a card for each post.</p><p>The result looks like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VT9ljAQ2xhkdHUlVjzV0KA.png" /></figure><p>You can <a href="https://github.com/oxygenna/angular-wordpress-api">view all the source code here on GitHub</a>.</p><p>Please let us know what you think in the comments below and if you like this then be sure to check out <a href="https://themeforest.net/item/portal-angular-react-html-material-admin-template/21513258?ref=oxygenna">our latest admin template Portal!</a> Which includes Angular, React and HTML admin panel templates.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee0055686a70" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/connecting-angular-6-to-wordpress-ee0055686a70">Connecting Angular 6 to WordPress</a> was originally published in <a href="https://itnext.io/">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>