<?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 Heyse Li on Medium]]></title>
        <description><![CDATA[Stories by Heyse Li on Medium]]></description>
        <link>https://medium.com/@liheyse?source=rss-f5b01c6ca87f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DnHGFlNOr9xoXfTLSACrLg.jpeg</url>
            <title>Stories by Heyse Li on Medium</title>
            <link>https://medium.com/@liheyse?source=rss-f5b01c6ca87f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 15:19:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@liheyse/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[How to do End-to-End (E2E) Testing for React Native Android on Real Devices using Python, Appium…]]></title>
            <link>https://medium.com/@liheyse/how-to-do-end-to-end-e2e-testing-for-react-native-android-on-real-devices-using-python-appium-800cd6c62541?source=rss-f5b01c6ca87f------2</link>
            <guid isPermaLink="false">https://medium.com/p/800cd6c62541</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Heyse Li]]></dc:creator>
            <pubDate>Mon, 06 Nov 2017 15:21:02 GMT</pubDate>
            <atom:updated>2018-03-05T22:42:57.665Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to do End-to-End (E2E) Testing for React Native Android on Real Devices using Python, Appium, and AWS Device Farm</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CmzX6J3LAIzLk1X9kUdqaQ.png" /></figure><p>This tutorial is a step-by-step guide for people looking to run E2E tests on a large range of physical devices for their React Native Android app.</p><p>We will be using AWS Device Farm to do this.</p><p>In my previous writeup on the topic of E2E Testing for React Native Android:</p><p><a href="https://medium.com/front-end-hacking/how-to-do-end-to-end-e2e-testing-for-react-native-android-using-jest-and-appium-27d75e4d831b">How to do End-to-End (E2E) Testing for React Native Android using Jest and Appium</a></p><p>I mentioned that:</p><blockquote>If you want to run Appium on AWS Device Farm to test your app on real devices, you will need to use Appium Python. They do not support Appium JS.</blockquote><p>If you don’t know Python here is a quick tutorial on it: <a href="https://learnxinyminutes.com/docs/python3/">https://learnxinyminutes.com/docs/python3/</a></p><h3>Setup</h3><p>Follow the <a href="https://facebook.github.io/react-native/docs/getting-started.html">official Facebook guide</a> to start a React Native project. Be sure to select <strong><em>Building Projects with Native Code</em></strong>.</p><h4>Install appium, appium-doctor</h4><pre>yarn add --dev appium appium-doctor</pre><h4>Add appium related scripts to package.json</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/883e928174ffb863bf019fe55bda2f43/href">https://medium.com/media/883e928174ffb863bf019fe55bda2f43/href</a></iframe><h4>Run appium-doctor</h4><pre>yarn run appium-doctor</pre><p>You will need to fix the errors appium-doctor throws. However, for the purposes of testing Android, you can ignore anything iOS related (xCode, Carthage).</p><h4>Start appium server</h4><pre>yarn run appium</pre><p>Take a note of the port, you’ll need it later (default port is 4723).</p><h3>Installing python stuff</h3><h4>Install virtualenv</h4><p>There are a couple of ways to install virtualenv.</p><ol><li>No anaconda installed: pip install --user virtualenv</li><li>If you have installed anaconda: conda install virtualenv</li></ol><h4>Setup virtualenv</h4><pre>virtualenv venv<br>source venv/bin/activate # Enter virtual environment</pre><h4>Install dependencies</h4><p>Since we have entered the virtual environment from the previous steps, any Python packages we install will be localized to this project’s virtualenv.</p><p>Packages to install:</p><ul><li>Appium-Python-Client: Our Appium client</li><li>selenium: Our webdriver</li><li>pytest: Our test runner</li><li>toolz: Some helper functions</li></ul><pre>pip install Appium-Python-Client selenium pytest</pre><p>Let’s store these dependencies in a file named requirements.txt so that we can always come back and reinstall them.</p><pre>pip freeze &gt; requirements.txt</pre><h3>Basic Test</h3><p>Now that we’re all setup, let’s write our first test.</p><p>This first file is to be saved to: ./__tests__/conftest.py. It sets up some basic initialization of our Appium webdriver. Notice the function is marked with a decorator pytest.fixture. This allows it to be consumed by test functions later.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1ecc6014edd9bdcced74d0a9230010c4/href">https://medium.com/media/1ecc6014edd9bdcced74d0a9230010c4/href</a></iframe><p>This second file is to be saved to: ./__tests__/test_main.py. This file uses the driver fixture we made in conftest.py. It uses the driver object that was yielded by the fixture.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/457217a007a17b6777db0051590c776e/href">https://medium.com/media/457217a007a17b6777db0051590c776e/href</a></iframe><p>We use driver.implicitly_wait because we don’t know how long it will take for an element to appear on screen. We will wait for a maximum of 10 seconds before considering the test failed. Our test will try repeatedly over the wait period to find the element.</p><p>This basic test just checks that a view with the accessibilityLabel=&quot;testview&quot; exists.</p><p>Some things to watch out for:</p><ul><li>The app path in the config is relative to the <strong><em>root of your project. </em></strong>Not relative to the test file<strong><em>.</em></strong></li></ul><p>You might be wondering, “Why accessibilityLabel?”. Well that’s how we look up elements when doing testing with Appium and React Native. This is also compatible with iOS testing on Appium. Supposedly there will be testID support in the future, but for now this is the recommended way.</p><p>Let’s add the accessibilityLabel=&quot;testview&quot; to the root of our app’s view in ./index.android.js.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/84546cdf5b64ed1a93b0f6f0d058286e/href">https://medium.com/media/84546cdf5b64ed1a93b0f6f0d058286e/href</a></iframe><h4>Run the test</h4><ol><li>Start emulator</li><li>Start React Native dev server: react-native start</li><li>yarn test</li><li>Your test should be passing!</li></ol><h3>Button Test</h3><p>Add the following code to ./__tests__/test_main.py.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/51ccd8f6af44fca64a1375dfb8c18f83/href">https://medium.com/media/51ccd8f6af44fca64a1375dfb8c18f83/href</a></iframe><p>Let’s add a button that increments a on-screen counter. Your ./index.android.js should look like this now:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/588dee5308b52b9c0bbd29f216b5758c/href">https://medium.com/media/588dee5308b52b9c0bbd29f216b5758c/href</a></iframe><p>Run the test. You should see the app clicking the button by itself and the counter should increment. Your tests should all pass.</p><p>Now that we’ve written a couple of tests and have successfully run them on an emulator on our local machines, let’s try running them on AWS Device Farm.</p><h3>AWS Device Farm</h3><h4>Update Test Code for AWS</h4><p>When we run our tests on AWS, <a href="https://github.com/awslabs/aws-device-farm-appium-python-tests-for-android-sample-app/blob/master/tests/tests/base_tests/base_test.py">the desired capabilities must be blank</a>. Let’s update the code so that we can run on our local machines and AWS.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6d0e4c18b5dd75f1ad0c9460f77c2d6b/href">https://medium.com/media/6d0e4c18b5dd75f1ad0c9460f77c2d6b/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cc51b1ecc89b4dda14315c4ed6e0ee8c/href">https://medium.com/media/cc51b1ecc89b4dda14315c4ed6e0ee8c/href</a></iframe><h4>Build App APK</h4><p>We will need to build a production apk that will be uploaded to AWS:</p><ol><li>cd android &amp;&amp; ./gradlew assembleRelease</li><li>The file can be found under: ./android/app/build/outputs/apk/app-release-unsigned.apk</li></ol><h4>Package Your Tests</h4><p>Follow <a href="http://docs.aws.amazon.com/devicefarm/latest/developerguide/test-types-android-appium-python.html#test-types-android-appium-python-build-test-package">Amazon’s official guide on how to package your tests for AWS Device Farm.</a></p><h4>Running Tests on AWS</h4><ol><li>Signup for AWS Device Farm</li><li>Create a new project</li><li>Create a new run &gt; Upload production apk</li><li>Configure test &gt; Appium Python &gt; Upload test package zip file</li><li>Select devices</li><li>Specify device state</li><li>Review and start run &gt; Set max time per device</li><li>Wait for tests to run</li></ol><p>You’re done! Thanks for reading and I hope this tutorial has been helpful for you!</p><p>The companion code to this article can be found at this repo:</p><p><a href="https://github.com/hyperh/appium-python-aws-tutorial">hyperh/appium-python-aws-tutorial</a></p><h4>Things to note on AWS</h4><ul><li>You might need to watch out for the folder structure of the zip file. Sometimes in the past I had issues with a zip file that included a top level folder. I didn’t run into those problems when writing this tutorial though.</li><li>Make sure Appium-Python-Client is at the right version for AWS. You might need to downgrade to Appium-Python-Client==0.20.</li><li>You might get this error for the command driver.send_keys: <a href="https://github.com/appium/python-client/issues/162">https://github.com/appium/python-client/issues/162</a> . In which case you will need to downgrade to selenium==3.3.1.</li><li>AWS will shut down the Appium server for each test, so pytest’s fixtures with scope of module won’t work. All fixtures are effectively scoped to function now.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=800cd6c62541" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to do End-to-End (E2E) Testing for React Native Android using Jest and Appium]]></title>
            <link>https://medium.com/front-end-weekly/how-to-do-end-to-end-e2e-testing-for-react-native-android-using-jest-and-appium-27d75e4d831b?source=rss-f5b01c6ca87f------2</link>
            <guid isPermaLink="false">https://medium.com/p/27d75e4d831b</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[appium]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Heyse Li]]></dc:creator>
            <pubDate>Wed, 13 Sep 2017 00:34:21 GMT</pubDate>
            <atom:updated>2018-01-11T01:32:13.791Z</atom:updated>
            <content:encoded><![CDATA[<p>This tutorial is a simple step-by-step guide on how to setup Appium and Jest for React Native Android. I was looking for a step-by-step guide, but had difficulty finding one, so I decided to write my own. Hopefully this can help you out.</p><blockquote>Note: This tutorial only covers Android. If you want to run Appium on AWS Device Farm to test your app on real devices, you will need to use Appium Python. They do not support Appium JS. An Appium Python tutorial centered around AWS can be found <a href="https://medium.com/@liheyse/how-to-do-end-to-end-e2e-testing-for-react-native-android-on-real-devices-using-python-appium-800cd6c62541">here</a>.</blockquote><p>Appium is a way to automate manual user input for End-to-End (E2E) testing.</p><p>Jest is Facebook’s Javascript testing framework. It comes with pretty much everything you’ll need for testing.</p><h3>Setup</h3><p>Follow the letter that best applies to you to setup your React Native project.</p><h4>A. I’m just starting a React Native project!</h4><p>Follow the <a href="https://facebook.github.io/react-native/docs/getting-started.html">official Facebook guide</a> to start a React Native project. Be sure to select <strong><em>Building Projects with Native Code</em></strong>.</p><h4>B. I have an older React Native project already!</h4><p><strong>Install Jest:</strong> yarn add --dev jest</p><p><strong>Enable ES6+ syntax for Jest (mainly for </strong><strong>import, </strong><strong>async/await):</strong></p><pre>yarn add --dev babel-preset-react-native</pre><p>Add a .babelrc file at the root of your project:</p><pre>{<br>  &quot;presets&quot;: [&quot;react-native&quot;]<br>}</pre><p>Once you have done either A or B, continue below…</p><h4>Install appium, appium-doctor</h4><pre>yarn add --dev appium appium-doctor</pre><h4>Add appium related scripts to package.json</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/883e928174ffb863bf019fe55bda2f43/href">https://medium.com/media/883e928174ffb863bf019fe55bda2f43/href</a></iframe><h4>Run appium-doctor</h4><pre>yarn run appium-doctor</pre><p>You will need to fix the errors appium-doctor throws. However, for the purposes of testing Android, you can ignore anything iOS related (xCode, Carthage).</p><h4>Install webdriver</h4><pre>yarn add --dev wd</pre><h4>Start appium server</h4><pre>yarn run appium</pre><p>Take a note of the port, you’ll need it later (default port is 4723).</p><h3>Basic Test</h3><p>Now that we’re all setup, let’s write our first test. Save it to: ./__tests__/appium.test.js. We’ll be building upon this file later.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4392035027fea5de431760157e0ca7df/href">https://medium.com/media/4392035027fea5de431760157e0ca7df/href</a></iframe><p>This basic test just checks that a view with the accessibilityLabel=&quot;testview&quot; exists and that a view with accessibilityLabel=&quot;notthere&quot; does not exist.</p><p>Some things to watch out for:</p><ol><li>jasmine.DEFAULT_TIMEOUT_INTERVAL : This is set because otherwise you run into errors with async functions timing out.</li><li>The app path in the config is relative to the <strong><em>root of your project. </em></strong>Not relative to the test file<strong><em>.</em></strong></li><li>You need to sleep the test runner with driver.sleep(...) while you wait for the app to load.</li></ol><p>You might be wondering, “Why accessibilityLabel?”. Well that’s how we look up elements when doing testing with Appium and React Native. This is also compatible with iOS testing on Appium. Supposedly there will be testID support in the future, but for now this is the recommended way.</p><p>Let’s add the accessibilityLabel=&quot;testview&quot; to the root of our app’s view in ./index.android.js.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/84546cdf5b64ed1a93b0f6f0d058286e/href">https://medium.com/media/84546cdf5b64ed1a93b0f6f0d058286e/href</a></iframe><h4>Run the test</h4><ol><li>Start emulator</li><li>Start React Native dev server: react-native start</li><li>yarn test</li><li>Your test should be passing!</li></ol><h3>Button Click Test</h3><p>Add the following code to ./__tests__/appium.test.js.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d8597529c4d22ba54830e802ebab4712/href">https://medium.com/media/d8597529c4d22ba54830e802ebab4712/href</a></iframe><p>Let’s add a button that increments a on-screen counter. Your ./index.android.js should look like this now:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/588dee5308b52b9c0bbd29f216b5758c/href">https://medium.com/media/588dee5308b52b9c0bbd29f216b5758c/href</a></iframe><p>Run the test. You should see the app clicking the button by itself and the counter should increment. Your tests should all pass.</p><h3>Text Input Test</h3><p>Add the following code to ./__tests__/appium.test.js.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/148c00cdf67c68a79b7e58fe0c6f683b/href">https://medium.com/media/148c00cdf67c68a79b7e58fe0c6f683b/href</a></iframe><p>Let’s add a text input that updates a on-screen text view. Your ./index.android.js should look like this now:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/066d9bafd5906feefef8922cbd975564/href">https://medium.com/media/066d9bafd5906feefef8922cbd975564/href</a></iframe><p>Run the test. You should see the app enter some text into the input. Your tests should all pass.</p><p><strong><em>Congrats!</em></strong></p><p>Just one last tip…</p><h3>Appium Desktop (Inspector Mode)</h3><p><a href="https://github.com/appium/appium-desktop">Appium Desktop</a> has a helpful Inspector Mode that:</p><blockquote>…you can use to look at your app’s elements, get basic information about them, and perform basic interactions with them. This is useful as a way to learn about Appium or as a way to learn about your app so you can write tests for it.</blockquote><p>You can download it from <a href="https://github.com/appium/appium-desktop">here</a>.</p><h4>Setup</h4><ol><li>Start Android emulator</li><li>Start Appium Desktop server</li><li>Click on “Start Inspector Session”</li><li>Automatic Server &gt; Desired Capabilities</li><li>1st row:platformName, text, Android</li><li>2nd row:deviceName, text, Android Emulator</li><li>3rd row:app, text, (Absolute path to your apk)</li><li>Start the Inspector</li></ol><h3>Full Code</h3><p>The full code for this tutorial is located here:</p><p><a href="https://github.com/hyperh/appium-tutorial">hyperh/appium-tutorial</a></p><h3>Additional Reading</h3><ul><li><a href="https://github.com/admc/wd/blob/master/doc/api.md">All commands for webdriver</a> (It’s a bit long)</li><li><a href="https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/caps.md">Appium config</a></li><li>Another tutorial: <a href="https://github.com/garthenweb/react-native-e2etest">https://github.com/garthenweb/react-native-e2etest</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27d75e4d831b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/front-end-weekly/how-to-do-end-to-end-e2e-testing-for-react-native-android-using-jest-and-appium-27d75e4d831b">How to do End-to-End (E2E) Testing for React Native Android using Jest and Appium</a> was originally published in <a href="https://medium.com/front-end-weekly">Frontend Weekly</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Server Side Rendering (SSR) with Express and CSS Modules]]></title>
            <link>https://codeburst.io/react-server-side-rendering-ssr-with-express-and-css-modules-722ef0cc8fa0?source=rss-f5b01c6ca87f------2</link>
            <guid isPermaLink="false">https://medium.com/p/722ef0cc8fa0</guid>
            <category><![CDATA[server-side-rendering]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[css-modules]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Heyse Li]]></dc:creator>
            <pubDate>Mon, 05 Dec 2016 15:52:07 GMT</pubDate>
            <atom:updated>2017-11-12T19:55:52.983Z</atom:updated>
            <content:encoded><![CDATA[<p>I was learning React Server Side Rendering (SSR) recently. Lots of tutorials have so many new libraries and have a large codebase. I often had trouble learning from them. They throw in everything and the kitchen sink, with hot reloading, Redux, Routing, production-ready configs, etc…I just wanted to learn SSR and CSS Modules!</p><p>My goal is to strip this tutorial down to the absolute bare essentials you need to get React SSR and CSS Modules working to display a simple page for <strong>development</strong>. Hopefully, you find this helpful. Let’s get started!</p><h4>Package Manager</h4><p>I’m going to be using Yarn instead of NPM for this tutorial. Yarn is cross-compatible with NPM; they can both use the exact same package.json file.</p><pre>yarn // npm install (from a package.json)<br>yarn add PACKAGE // npm install --save PACKAGE<br>yarn add --dev PACKAGE // npm install --save-dev PACKAGE</pre><h3>Basic SSR</h3><p>Let’s install the required dependencies. The babel stuff is so that we can transpile our ES6 Javascript to ES5. babel-cli also allows us to call the command babel-node, which we will be using later to run our code.</p><p><em>To clarify: </em><em>babel-node is not to be used in production! This tutorial is for development purposes only.</em></p><p><a href="https://babeljs.io/docs/usage/cli/#babel-node">https://babeljs.io/docs/usage/cli/#babel-node</a></p><pre>yarn add --dev babel-cli babel-preset-es2015 babel-preset-react babel-preset-stage-0</pre><pre>yarn add express react react-dom</pre><p>Add ./app/.babelrc. This is what babel-node will use as its presets.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a3bf39faed8a574892673b90afdbcc53/href">https://medium.com/media/a3bf39faed8a574892673b90afdbcc53/href</a></iframe><p>Add a simple React Component in ./app/components/App.js.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5b68828c60f1cfcfa64f701457305465/href">https://medium.com/media/5b68828c60f1cfcfa64f701457305465/href</a></iframe><p>Add ./app/client.js. This will render our React component into the DOM</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/68b819b64735cd0bfb67236f4a30e37c/href">https://medium.com/media/68b819b64735cd0bfb67236f4a30e37c/href</a></iframe><p>Add the file ./app/template.js. This file will generate the string of our HTML. It’s a function that accepts a couple of parameters that we will supply later.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e24061e40dfbbe51563648676ffa9a45/href">https://medium.com/media/e24061e40dfbbe51563648676ffa9a45/href</a></iframe><p>Let’s install our Express server.</p><pre>yarn add express</pre><p>Add the file ./server/index.js.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5756973ac61bcb76ea9c790acd63464b/href">https://medium.com/media/5756973ac61bcb76ea9c790acd63464b/href</a></iframe><p>Update our package.json with a script to start our server. babel-node compiles our code to ES6 then runs our code innode.</p><pre>&quot;scripts&quot;: {<br>  &quot;start&quot;: &quot;babel-node -- server/index.js&quot;<br>},</pre><p>Run the server with npm start. Navigate to localhost:3000 in your browser and see our glorious app.</p><p>The complete code is located here: <a href="https://github.com/hyperh/react-ssr-tut/tree/ssr">https://github.com/hyperh/react-ssr-tut/tree/ssr</a></p><h3>Adding Webpack</h3><p>We’re going to need Webpack for CSS modules, so let’s refactor our basic SSR app into one that uses Webpack. We’re going to need to add a few more packages. webpack will compile our code into a bundle. webpack-node-externals shrinks the size of our bundle. babel-loader is what Webpack will run all our JS code through.</p><pre>yarn add --dev webpack webpack-node-externals babel-loader</pre><p>Add the file ./webpack.config.js.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2a58c1138a1998027aa903683450a9d4/href">https://medium.com/media/2a58c1138a1998027aa903683450a9d4/href</a></iframe><p>Move the render function from ./server/index.js to its own file ./app/SSR.js</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/825132b905377c2797c82d0c7e93783b/href">https://medium.com/media/825132b905377c2797c82d0c7e93783b/href</a></iframe><p>Update ./server/index.js. Notice the line:require(&#39;../dist/assets/SSR&#39;). This pulls in our compiled code from the output path of our ./webpack.config.js.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/879501a8bca54121271b4fef8ced6b1c/href">https://medium.com/media/879501a8bca54121271b4fef8ced6b1c/href</a></iframe><p>The app should still function as it did before if you do npm start. The only difference is that we are now using Webpack.</p><p>The complete code is located here: <a href="https://github.com/hyperh/react-ssr-tut/tree/ssr-webpack">https://github.com/hyperh/react-ssr-tut/tree/ssr-webpack</a></p><h3>Adding CSS Modules</h3><p>Let’s add a CSS file at ./app/components/App.css</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f7033e713a8736ee0cf4bda6c444d5e7/href">https://medium.com/media/f7033e713a8736ee0cf4bda6c444d5e7/href</a></iframe><p>Import the CSS file in ./app/components/App.js and apply the styles.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f66373fd6e6bab7772e1fe7a38dc532d/href">https://medium.com/media/f66373fd6e6bab7772e1fe7a38dc532d/href</a></iframe><p>Now we need to tell Webpack how to read CSS files, so lets install the appropriate loaders.</p><pre>yarn add --dev style-loader css-loader</pre><p>We’re going to have three files related to Webpack configs, so let’s organize them into a folder at ./webpack</p><p>./webpack/common.config.js</p><p>These configs are shared between both the client and the SSR file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a4250bea23714f2884288c097f426f95/href">https://medium.com/media/a4250bea23714f2884288c097f426f95/href</a></iframe><p>./webpack/webpack.config.dev-client.js</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/562871dfdf52ad4f0566b64557b16d48/href">https://medium.com/media/562871dfdf52ad4f0566b64557b16d48/href</a></iframe><p>./webpack/webpack.config-dev-ssr.js</p><p>Notice the loader for CSS files is slightly different on the server than it is on the client. We don’t run the style-loader on the SSR, but we do on the client. There’s also the flag locals.</p><p>Additional reading on reasons why: <a href="https://github.com/dferber90/fake-style-loader/issues/3">https://github.com/dferber90/fake-style-loader/issues/3</a></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/037f1c9b1d2239fddfde3f6613619331/href">https://medium.com/media/037f1c9b1d2239fddfde3f6613619331/href</a></iframe><p>Update ./server/index.js to use a middleware to compile the client side code into /assets/bundle.js.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/de70b59d549aafee676d28ef6d91b05f/href">https://medium.com/media/de70b59d549aafee676d28ef6d91b05f/href</a></iframe><p>Reference the compiled client bundle in ./app/template.js</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b429b6b1115120fdc0839c138001bffb/href">https://medium.com/media/b429b6b1115120fdc0839c138001bffb/href</a></iframe><p>Update your package.json scripts to build the SSR file.</p><pre>&quot;scripts&quot;: {<br>  &quot;build:dev&quot;: &quot;webpack --config ./webpack/webpack.config.dev-ssr.js&quot;,<br>  &quot;start&quot;: &quot;npm run build:dev &amp;&amp; babel-node -- server/index.js&quot;<br>},</pre><p>Do npm start to see our glorious app rendered with a <strong><em>red background!</em></strong></p><p>The complete code is located here: <a href="https://github.com/hyperh/react-ssr-tut/tree/css-modules">https://github.com/hyperh/react-ssr-tut/tree/css-modules</a></p><p>Thanks for reading, I hope that helped! Let me know if you have any comments down below.</p><h3>Resources</h3><p>All the code for this tutorial is located here: <a href="https://github.com/hyperh/react-ssr-tut">https://github.com/hyperh/react-ssr-tut</a></p><h3>Additional Readings</h3><ul><li><a href="https://ifelse.io/2015/08/28/server-side-rendering-with-react-and-react-router/">Server-Side Rendering with React and React-Router | If Else</a></li><li><a href="https://medium.com/front-end-hacking/server-side-rendering-with-react-and-express-382591bfc77c">Server side rendering with React and Express</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=722ef0cc8fa0" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/react-server-side-rendering-ssr-with-express-and-css-modules-722ef0cc8fa0">React Server Side Rendering (SSR) with Express and CSS Modules</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A step-by-step guide on how to setup Apple Push Notifications (APN) on Meteor and React Native]]></title>
            <link>https://medium.com/@liheyse/a-step-by-step-guide-on-how-to-setup-apple-push-notifications-apn-on-meteor-and-react-native-aa90c8d4bb72?source=rss-f5b01c6ca87f------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa90c8d4bb72</guid>
            <category><![CDATA[meteor]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[push-notification]]></category>
            <dc:creator><![CDATA[Heyse Li]]></dc:creator>
            <pubDate>Thu, 26 May 2016 13:55:47 GMT</pubDate>
            <atom:updated>2016-05-28T01:30:18.909Z</atom:updated>
            <content:encoded><![CDATA[<p>Meteor is mainly for the web, but what how can we stay up to date when we step away from our desktops and laptops? Having a mobile app version of your webapp can let people get updates through push notifications.</p><p>If you’ve never used React Native and Meteor before, you should check out the great tutorials by <a href="https://medium.com/u/1ec17560bf99">Spencer Carli</a> on the subject.</p><p>Here’s a high level overview of what this guide is going to cover:</p><ol><li>Get certificate and key from Apple</li><li>Convert certificate and key to <em>.pem</em> format</li><li>Test the certificate and key .pem files</li><li><strong>Meteor server:</strong> Save <em>.pem</em> files</li><li><strong>React Native: </strong>Link the PushNotificationsIOS library manually</li><li><strong>React Native:</strong> Update AppDelegate</li><li><strong>React Native:</strong> Setup <em>react-native-push-notifications</em></li><li><strong>React Native:</strong> Send device token to server</li><li><strong>Meteor server:</strong> Set device token</li><li><strong>Meteor server:</strong> Setup <em>apnagent</em></li><li><strong>Meteor server:</strong> Send a push notification</li><li>Some random issues you might have when trying this</li></ol><h4>Get certificate and key from Apple</h4><p>We’re going to follow the <a href="https://github.com/ParsePlatform/PushTutorial/tree/master/iOS">Parse guide</a> to get the <em>.cer</em> (certificate), <em>.p12</em> (key) from Apple. Do Step 1 (Creating the SSL certificate) and Step 2 (Creating the Development Provisioning Profile) in the Parse guide.</p><h4>Convert certificate and key to .pem format</h4><p>I had issues getting the .p12 file working, so we are going to convert them to .pem. Follow the following commands to get the <em>.pem</em> files. <em>cert.cer</em> is probably named by default as <em>aps_development.cer</em>.</p><pre>$ openssl x509 -in cert.cer -inform DER -outform PEM -out cert.pem<br>$ openssl pkcs12 -in key.p12 -out key.pem -nodes</pre><p><a href="https://github.com/argon/node-apn/wiki/Preparing-Certificates">https://github.com/argon/node-apn/wiki/Preparing-Certificates</a></p><h4>Test the certificate and key <em>.pem</em> files</h4><p>Next, let’s test our <em>.pem</em> files to see if they are working. Follow the appropriate step for development and production certificates and keys.</p><p><strong>For Development (sandbox) certificate and key</strong></p><pre>$ openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert cert.pem -key key.pem</pre><p><strong>For Production certificate and key</strong></p><pre>$ openssl s_client -connect gateway.push.apple.com:2195 -cert cert.pem -key key.pem</pre><p>You can tell if your <em>.pem</em> files are good if the the <a href="https://www.pubnub.com/knowledge-base/discussion/234/how-do-i-test-my-pem-key">terminal doesn’t let you input commands</a>. Also, you can check the return code. A return code of 0 is success. All the return codes are documented by Apple <a href="https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Appendixes/BinaryProviderAPI.html">here</a>. Here’s a <a href="http://stackoverflow.com/questions/12446705/meaning-of-different-status-codes-in-apns-error-response-packets/15302663#15302663">StackOverflow discussion</a> on their different meanings.</p><h4>Meteor server: Save .pem files</h4><p>The server is going to need the certificate and keys in order to send push notifications. So let’s save them in somewhere private. The <a href="http://guide.meteor.com/structure.html">Meteor docs</a> say:</p><blockquote>All files inside a top-level directory called private/ are only accessible from server code and can be loaded via the <a href="http://docs.meteor.com/#/full/assets_getText">Assets</a> API. This can be used for private data files and any files that are in your project directory that you don’t want to be accessible from the outside.</blockquote><p>That sounds like a good place to put them. Let’s save our certificate and key <em>.pem</em> files in <em>/private/cert.pem</em> and <em>/private/key.pem.</em></p><h4>React Native: Link the PushNotificationsIOS library manually</h4><p>Follow the Facebook React Native guide on <a href="https://facebook.github.io/react-native/docs/linking-libraries-ios.html#manual-linking">how to link libraries manually</a>. <a href="https://facebook.github.io/react-native/docs/pushnotificationios.html#content">Make sure to add the following to Header Search Paths</a>:</p><pre>$(SRCROOT)/../node_modules/react-native/Libraries/PushNotificationIOS</pre><h4>React Native: Update AppDelegate</h4><p>Follow the Facebook React Native guide on <a href="https://facebook.github.io/react-native/docs/pushnotificationios.html#content">how to update your AppDelegate</a> to enable push notifications.</p><h4><strong>React Native:</strong> Setup <em>react-native-push-notifications</em></h4><p>We’re going to be using the npm package <a href="https://github.com/zo0r/react-native-push-notification"><em>react-native-push-notifications</em></a> to handle the receipt of push notifications on our React Native app. What’s nice about this package is that it can also handle Google Cloud Messaging (GCM), but we won’t be covering that in this tutorial.</p><p><em>react-native-push-notifications</em> handles setting up iOS notification listeners for you. You don’t need to request permissions manually either.</p><p>Just need to install the package:</p><pre>npm install --save react-native-push-notifications</pre><h4><strong>React Native:</strong> Send device token to server</h4><p>On registration, we’ll receive some data in the method <em>onRegister. </em>It looks like this:</p><pre>data = {<br>  token // the device-specific token<br>  os // &#39;ios&#39; or &#39;android&#39;<br>}</pre><p>We will be sending the data object to our Meteor server by calling the Meteor method <em>notifications.set.pushToken.</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/eca2d495e5a0802e7082429bcdbfff58/href">https://medium.com/media/eca2d495e5a0802e7082429bcdbfff58/href</a></iframe><h4>Meteor server: Set device token</h4><p>The following code is assumes that you’ve set up some kind of log in system for your users and associates each device with a user. It also assumes that each user can have multiple devices.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8c2d1142f50c0bebb20a836f3143fda7/href">https://medium.com/media/8c2d1142f50c0bebb20a836f3143fda7/href</a></iframe><h4>Meteor server: Setup apnagent</h4><p>We’re going to use <a href="http://logicalparadox.github.io/apnagent/">apnagent</a> to help us communicate with Apple and send push notifications.</p><p>Put this following code somewhere on the server. I’ve put mine in <em>/server/apnagent.js</em>. I’m also using the development certificate and key so I need to enable the sandbox mode. You don’t need that if you are using the production ones.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5f25598108b6cfab9ca6efd994c110ad/href">https://medium.com/media/5f25598108b6cfab9ca6efd994c110ad/href</a></iframe><h4>Meteor server: Send a push notification</h4><p><strong>Sending extra data down</strong></p><p>From the <a href="http://logicalparadox.github.io/apnagent/">apnagent docs</a>:</p><blockquote>Set extra key values that will be incuded as part of the payload. aps is reserved by Apple and enc is reserved by apnagent.</blockquote><p><strong>Notifications while app is in background</strong></p><p>If you want to get notifications to popup when the app is in the background, make sure to use <em>.alert(someString)</em>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f91a8badd86d758e399d67570e220bca/href">https://medium.com/media/f91a8badd86d758e399d67570e220bca/href</a></iframe><p>With that, you should be able to send APN messages from the server and receive them on a React Native app.</p><p>Let me know if this has been helpful or if you found anything confusing!</p><h3>Random Issues</h3><h4>“Unable to resolve some modules” when trying to run Meteor app</h4><p>I ran into this problem when I was trying to run my Meteor app.</p><pre>Unable to resolve some modules:</pre><pre>“./lib-cov/apnagent” in</pre><pre>/myapp/node_modules/apnagent/index.js</pre><pre>(os.osx.x86_64)</pre><pre>&quot;./lib-cov/inherits” in</pre><pre>/myapp/node_modules/tea-inherits/index.js</pre><pre>(os.osx.x86_64)<br>...</pre><p>I didn’t list them all here, but there’s more modules that can’t be resolved, and they’re all related to apnagent’s imports. However, it seems like if you just wait a bit longer, it’s able to resolve all the required modules. So just sit and wait. Not a very insightful solution, I know. If someone has another solution to this I’d love to hear it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa90c8d4bb72" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A step-by-step guide on how to backup your Mongo database on a mupx deployed Meteor app on Digital…]]></title>
            <link>https://medium.com/@liheyse/a-step-by-step-guide-on-how-to-backup-your-mongo-database-on-a-mupx-deployed-meteor-app-on-digital-e8fafc6ecbfc?source=rss-f5b01c6ca87f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8fafc6ecbfc</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[meteor]]></category>
            <dc:creator><![CDATA[Heyse Li]]></dc:creator>
            <pubDate>Sat, 30 Apr 2016 15:36:01 GMT</pubDate>
            <atom:updated>2017-11-23T15:46:20.772Z</atom:updated>
            <content:encoded><![CDATA[<h3>A step-by-step guide on how to backup your Mongo database on a mupx deployed Meteor app on Digital Ocean</h3><blockquote>2017–11–23 Note: MongoChef is now called Studio 3T. <a href="https://studio3t.com/">https://studio3t.com/</a></blockquote><p>I had to do this recently, so I’m putting down what I learned in one place in case anyone needs it too.</p><p>Here’s the high level overview of what this article is about.</p><ol><li>Connecting to Mongo</li><li>Backing up your database</li><li>Restoring your database</li></ol><h4>Connecting to Mongo</h4><p>This guide will be using MongoChef; a GUI for managing your Mongo databases. You can download it here: <a href="http://3t.io/mongochef/">http://3t.io/mongochef/</a>. It’s free for personal use.</p><p>mupx<em> </em>actually sets up your Meteor app in a Docker container so you actually can’t access the Mongo database directly. <a href="https://github.com/arunoda/meteor-up/tree/mupx">mupx docs say:</a></p><blockquote>If you decided to use MongoDB, it’ll be also running as a Docker container. It’s bound to the local interface and port 27017 (you cannot access from the outside)</blockquote><p>So in order to connect to Mongo we are going to have to do the following: First, let’s tell MongoChef where our database is; it exists at <em>localhost:27017.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Et4hjjo2gQPJC7XXOPdffA.png" /><figcaption>MongoChef — Server tab</figcaption></figure><p>Next, we have to SSH tunnel into our Digital Ocean droplet so that the localhost refers to the server’s Mongo database properly. Your settings may differ here, but if you are using an SSH key, it’s usually located at <em>~/.ssh/id_rsa </em>(on a Mac)<em>.</em></p><p>If you want to learn how to set up SSH keys refer to this tutorial: <a href="https://www.digitalocean.com/community/tutorials/how-to-use-ssh-keys-with-digitalocean-droplets">https://www.digitalocean.com/community/tutorials/how-to-use-ssh-keys-with-digitalocean-droplets</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E1oOaLm828M-2lEWYTw5wA.png" /><figcaption>MongoChef — SSH Tunnel tab</figcaption></figure><p>You can press <em>Test Connection</em> just to be sure it was set up properly. If it’s all good, save your connection, then connect to it.</p><p>Once you are connected, you should see something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*1GB_yowBgFlQ--7ll3Dlfg.png" /><figcaption>MongoChef — Left sidebar after you’ve connected</figcaption></figure><p>In case you were wondering, the <em>appName </em>comes from the <em>mup.json</em> field <em>appName</em>.</p><h4>Backing Up Your Database</h4><p>Let’s export all the collections in the <em>appName </em>database.</p><ol><li>Right click on the database called <em>appName</em></li><li>Export Collections</li><li>Export Target &gt; Specify a target folder &gt; Format &gt; JSON — mongo shell / 3T MongoChef</li><li>Export</li></ol><p>Once the export is done you can go to the target folder you specified and you should see a bunch of <em>.json</em> files in there. That’s your whole database!</p><h4>Restoring Your Database</h4><p>You might want to do this on a different server just in case.</p><ol><li>Right click on the database you want to import into.</li><li>Import Collections</li><li>Import Source Files &gt; Click the green + &gt; Select all the <em>.json</em> files you exported earlier</li><li>Import Target &gt; Select Import Mode</li><li>Import</li></ol><p>You’re done! I hoped that helped.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8fafc6ecbfc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Meteor 1.3, Mantra, and the Document Head]]></title>
            <link>https://medium.com/@liheyse/meteor-1-3-mantra-and-the-document-head-17f7f7ab56f7?source=rss-f5b01c6ca87f------2</link>
            <guid isPermaLink="false">https://medium.com/p/17f7f7ab56f7</guid>
            <category><![CDATA[mantra]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[meteor]]></category>
            <dc:creator><![CDATA[Heyse Li]]></dc:creator>
            <pubDate>Wed, 24 Feb 2016 00:02:23 GMT</pubDate>
            <atom:updated>2016-02-24T10:05:51.461Z</atom:updated>
            <content:encoded><![CDATA[<p>I recently started to adopt the <a href="https://github.com/kadirahq/mantra">Mantra</a> application architecture for my Meteor 1.3 apps. Mantra is still in it’s early stages (0.2.0) so I ran into a situation that the spec and the current examples didn’t cover.</p><p>Prior to Meteor 1.3, I would just keep all the &lt;head&gt; stuff in an html file in /client/index.html. But we have no index.html in Mantra anymore. What do we do?</p><p>It’s a pretty simple solution. Kadira comes to the rescue with their Meteor package; <a href="https://github.com/kadirahq/meteor-dochead">DocHead</a>.</p><p>First, add the Meteor package.</p><pre>meteor add kadira:dochead</pre><p>Then in a file on the client side:</p><pre>// /client/main.js</pre><pre>import {createApp} from ‘mantra-core’;<br>import {DocHead} from ‘meteor/kadira:dochead’;<br>import initContext from ‘./configs/context’;</pre><pre>// modules<br>import module from ‘./modules/core’;</pre><pre>// init context<br>const context = initContext();</pre><pre>// create app<br>const app = createApp(context);</pre><pre>app.loadModule(module);<br>app.init();</pre><pre>// DocHead stuff<br>DocHead.setTitle(‘My Awesome App’);<br>DocHead.addLink({<br> href: ‘<a href="https://fonts.googleapis.com/icon?family=Material+Icons%27">https://fonts.googleapis.com/icon?family=Material+Icons&#39;</a>,<br> rel: ‘stylesheet’<br>});<br>DocHead.addLink({<br> href: ‘<a href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css%27">https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css&#39;</a>,<br> rel: ‘stylesheet’<br>});</pre><p>Or you could just move the DocHead stuff into its own file and call it in main.js, like so:</p><pre>// /client/dochead.js</pre><pre>import {DocHead} from ‘meteor/kadira:dochead’;</pre><pre>export default function () {<br>  // head<br>  DocHead.setTitle(&#39;My Awesome App&#39;);<br>  DocHead.addLink({<br>    href: &#39;<a href="https://fonts.googleapis.com/icon?family=Material+Icons%27">https://fonts.googleapis.com/icon?family=Material+Icons&#39;</a>,<br>    rel: &#39;stylesheet&#39;<br>  });<br>  DocHead.addLink({<br>    href: &#39;<a href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css%27">https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css&#39;</a>,<br>    rel: &#39;stylesheet&#39;<br>  });<br>}</pre><p>And call it in main.js:</p><pre>// /client/main.js</pre><pre>import {createApp} from ‘mantra-core’;<br>import insertHead from ‘./dochead.js’;<br>import initContext from ‘./configs/context’;</pre><pre>// modules<br>import module from ‘./modules/core’;</pre><pre>// init context<br>const context = initContext();</pre><pre>// create app<br>const app = createApp(context);</pre><pre>app.loadModule(module);<br>app.init();</pre><pre>// head<br>insertHead();</pre><p>Apparently <a href="https://github.com/nfl/react-helmet">React Helmet</a> is supposed to be <a href="https://github.com/mantrajs/meteor-mantra-kickstarter/issues/10#issuecomment-187467188">implemented in the next Mantra release</a>. But if you don’t want to until then, this is a quick and simple way to get stuff into the head.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17f7f7ab56f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>