<?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 ItsLeeOwen on Medium]]></title>
        <description><![CDATA[Stories by ItsLeeOwen on Medium]]></description>
        <link>https://medium.com/@itsleeowen?source=rss-52d44374f76f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rGQZz_-vqbBZCVAO59mZhQ.jpeg</url>
            <title>Stories by ItsLeeOwen on Medium</title>
            <link>https://medium.com/@itsleeowen?source=rss-52d44374f76f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 23:36:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@itsleeowen/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[Three JavaScript Libraries to Star on Github]]></title>
            <link>https://medium.com/brave-people/three-javascript-libraries-to-star-on-github-f6e3232bd87a?source=rss-52d44374f76f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6e3232bd87a</guid>
            <category><![CDATA[electron]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[brave-blog]]></category>
            <category><![CDATA[brave-code]]></category>
            <dc:creator><![CDATA[ItsLeeOwen]]></dc:creator>
            <pubDate>Fri, 14 Oct 2016 14:50:56 GMT</pubDate>
            <atom:updated>2017-01-05T15:12:05.111Z</atom:updated>
            <content:encoded><![CDATA[<p>As a software engineer I dedicate a reasonable amount of time not only to being aware of emerging libraries, but tracking them down like a Fett.</p><p>If you can relate, then you’re probably already aware of the awesomeness that is <a href="https://github.com/trending">github.com/trending</a>. Here are three .js libraries I’ve been watching and assimilating in 2016.</p><h3><a href="https://github.com/legomushroom/mojs">mo.js</a></h3><p>mo.js is probably the most unique, and visually impressive animation library that we’ve seen, ever. It displays a novel design by using svg paths as easing parameters, resulting in an amazingly expressive look when compared to traditional tweens and transitions. You might mistake <a href="http://codepen.io/sol0mka/full/39427561a8a0b15d7896480a7d96d3d1/">the demo below</a> as a video produced with After Effects, but inspect the dom if thou disbelieveth. As of this time documentation is still a heavy work in progress, but we found more than enough in the <a href="https://github.com/legomushroom/mojs/blob/master/api/index.md">github readme</a> to get started. Don’t let your animations stagnate in antiquity, head over to <a href="https://github.com/legomushroom/mojs">github.com/legomushroom/mojs</a> and discover what <a href="https://twitter.com/legomushroom">@legomushroom</a> has been up to, it’s exciting.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fleefernandes-brave%2Fembed%2Fpreview%2FxExgQz%3Fheight%3D600%26amp%3Bslug-hash%3DxExgQz%26amp%3Bdefault-tabs%3Djs%2Cresult%26amp%3Bhost%3Dhttp%253A%252F%252Fcodepen.io%26amp%3Bembed-version%3D2&amp;url=https%3A%2F%2Fcodepen.io%2Fleefernandes-brave%2Fpen%2FxExgQz&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fi.cdpn.io%2F519417.xExgQz.small.de569975-4ab1-4beb-b920-fbeab75be31d.png&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/1b74379d0983c930d5438e1692385d41/href">https://medium.com/media/1b74379d0983c930d5438e1692385d41/href</a></iframe><h3><a href="https://github.com/facebook/react-native">React Native</a></h3><p>React Native isn’t new to the scene, but I still come across .js developers who have yet to clone and build something with it. It’s understandable from the perspective that we’re just getting over the dismal experience of “hybrid” apps, but React Native is different. You’re not building a <a href="https://medium.com/teach-code/your-hybrid-app-is-going-to-kill-you-416041d27eac">html web view abomination</a> masquerading as an iOS/Android app. <strong>“You build a real mobile app that’s indistinguishable from an app built using Objective-C or Java. React Native uses the same fundamental UI building blocks as regular iOS and Android apps.”</strong> I enjoy working with Swift + Xcode, but now <a href="http://notes.bravepeople.co/react-native-squarespace/">I also really enjoy working with React Native</a>. Don’t take my word for it, watch <a href="https://www.youtube.com/watch?v=ZqKYk0aTaYk">Jani Evakallio’s presentation at React London</a>.</p><p><strong>head nod to </strong><a href="https://www.nativescript.org/"><strong>NativeScript</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/245/0*ZsIVHk6rSjNY8syQ.gif" /></figure><h3><a href="https://github.com/electron/electron">Electron</a></h3><p>There’s a good chance you’re using atom.io as your go-to editor. There’s also a chance you weren’t aware that atom is running on top of Electron. <strong>“If you can build a website, you can build a desktop app.</strong> Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS.” Slack, Microsoft, Facebook, Wordpress, and more have already built desktop applications with Electron, and you probably use one of them. <a href="https://www.youtube.com/watch?v=_uA5LZk2vmQ">Here’s a great presentation by Felix Rieseberg</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wa-5ampmVNdBk7ww.png" /></figure><p>Being a web developer in 2016 is more exciting than ever because you’re just a few steps away from utilizing experience you’ve already gained in other avenues.</p><h3>Grab these three .js libs, and press onward brave devs.</h3><p><em>Originally published at </em><a href="http://notes.bravepeople.co/three-js-libs-to-star-on-github/"><em>notes.bravepeople.co</em></a><em> on October 14, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6e3232bd87a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brave-people/three-javascript-libraries-to-star-on-github-f6e3232bd87a">Three JavaScript Libraries to Star on Github</a> was originally published in <a href="https://medium.com/brave-people">Brave People /Tribe</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bringing Squarespace Data to your React Native App]]></title>
            <link>https://medium.com/brave-people/bringing-squarespace-data-to-your-react-native-app-c87f649f0ea8?source=rss-52d44374f76f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c87f649f0ea8</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[brave-blog]]></category>
            <category><![CDATA[squarespace]]></category>
            <category><![CDATA[brave-how-to]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[ItsLeeOwen]]></dc:creator>
            <pubDate>Wed, 24 Aug 2016 13:23:50 GMT</pubDate>
            <atom:updated>2017-01-05T15:13:15.478Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*_NOLhb8uHHEMl0q2sGUzVw.jpeg" /><figcaption>React Native + Squarespace</figcaption></figure><p>Let’s say you have a Squarespace website, maybe a photography based template loaded with <em>glorious</em> photos, and you want to build a native app that has exclusive features but also integrates photos that are on the site. We can accomplish this using the <a href="http://squarespace.com/">Squarespace</a> JSON API, and <a href="http://www.reactnative.com/">React Native</a>, allowing you to use the Squarespace CMS for managing content on both the website &amp; app. In my demo I’m going to show you how we publish one gallery to both a website &amp; iOS app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*etRxUhcMw3Xdk9KCatADwA.gif" /></figure><p>How Does It Work?</p><p>By default Squarespace returns <a href="http://lange-demo.squarespace.com/people-lange">HTML</a> but we can simply ask for <a href="http://lange-demo.squarespace.com/people-lange?format=json">JSON</a> instead by appending a query parameter to the url <em>?format=json</em>. Then we <a href="https://facebook.github.io/react-native/docs/network.html">fetch</a> with React Native.</p><p>Create a gallery on your site, and take note of the url slug because you’ll append that to your site url when we beseech Squarespace to respond with JSON.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bG9Vv4R5PVAwvquy.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hDSngAb_6dx21ssc.png" /></figure><p>Visit your gallery in the browser and you’ll see an HTML rendering of it. But for our app we need JSON instead of HTML, so append the ?format=json query parameter, and let the fun begin.</p><pre>HTML: <a href="http://lange-demo.squarespace.com/people-lange">http://lange-demo.squarespace.com/people-lange</a> </pre><pre>JSON: <a href="http://lange-demo.squarespace.com/people-lange?format=json">http://lange-demo.squarespace.com/people-lange?format=json</a></pre><p>Inspect the JSON results in Chrome, and you’ll see an “items” array containing useful info such as timestamps, categories, even color averages, but what we want for this exercise is the “assetUrl” property.</p><pre>items: [ { addedOn: 1459984693537, categories: [ &quot;Life in Portraiture&quot; ], filename: &quot;125A9314-2.JPG&quot;, colorData: { topLeftAverage: &quot;1e0e18&quot;, ... }, likeCount: 0, assetUrl: &quot;http://static1.squarespace.com/static/56426809e4b032f47d420805/57059907b09f954854626d97/57059935f699bb254be0eb70/1460512304017/125A9314-2.JPG&quot;, ... }</pre><p>Now we need to do some work on our app. To begin follow React Native’s <a href="https://facebook.github.io/react-native/docs/getting-started.html">Getting Started</a> process, and after the first page of steps we’ll open index.ios.js in an editor to add a constructor to the Component class.</p><pre>constructor (props) { <br>  super(props) <br>  this.state = { <br>    images: [],<br>  }<br>  // assign your domain name &amp; gallery slug here <br>  let domainName = &quot;lange-demo&quot;, <br>    gallerySlug = &quot;people-lange&quot;, <br>    url = `https://${domainName}.squarespace.com/${gallerySlug}?format=json` <br>    fetch(url)<br>      .then(res =&gt; res.json())<br>      .then(json =&gt; { <br>        let images = []<br>        json.items.forEach(item =&gt; { <br>          images.push(&lt;Image style={styles.stretch} key={item.id} source={{uri: item.assetUrl.replace(&#39;http://&#39;, &#39;https://&#39;)}} /&gt; ) }) <br>    this.setState({ images: images, }) <br>  })<br>}</pre><p>We’ll also update the render method to display our images in the ScrollView.</p><pre>render() { <br>  return ( <br>    &lt;View style={styles.container}&gt; <br>      &lt;Text style={styles.welcome}&gt; React Native + Squarespace &lt;/Text&gt; <br>      &lt;ScrollView style={{flex: 1, width: 500}}&gt; {this.state.images} &lt;/ScrollView&gt; <br>    &lt;/View&gt;<br>)}</pre><p>Run react-native run-ios and if all is as it should be you’ll see images from your squarespace gallery load in the app’s ScrollView.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*rimc5SsveZJDnrpMBOVvzg.gif" /></figure><p>React Native is awesome and we love it, but you can just as easily use Swift. It’s fantastic that Squarespace provides a JSON API that is ready for consumption out-of-the-box, there’s just so much that we can do with it.</p><p>An esteemed colleague from another department asked a question along the lines of, “why would you want an app for a squarespace website”. This is a great question, and I’m glad it was asked because you wouldn’t. If your project only requires a web based experience then you should build a responsive website which is what Brave People did for <a href="http://bakertilly.com/annualreport2016/">Baker Tilly’s 2016 Annual Report</a>.</p><p>However if your project does require an app available on the App Store and/or Play Store, the power here is that you can build it and utilize the Squarespace CMS. Many native apps require a backend administrative component; a portal to add, update, and remove content. <strong>The magic here is that Squarespace’s elegant CMS can fill this role.</strong> If the project involves both a website and app this stack is extremely efficient, especially where there’s overlap of data between the website and app.</p><p><em>Originally published at </em><a href="http://notes.bravepeople.co/react-native-squarespace/"><em>notes.bravepeople.co</em></a><em> on August 24, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c87f649f0ea8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brave-people/bringing-squarespace-data-to-your-react-native-app-c87f649f0ea8">Bringing Squarespace Data to your React Native App</a> was originally published in <a href="https://medium.com/brave-people">Brave People /Tribe</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>