<?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 Alex Yee on Medium]]></title>
        <description><![CDATA[Stories by Alex Yee on Medium]]></description>
        <link>https://medium.com/@alxyee1?source=rss-fbab5796799a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*PfVFQvIbmDz2IHas.</url>
            <title>Stories by Alex Yee on Medium</title>
            <link>https://medium.com/@alxyee1?source=rss-fbab5796799a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 14:08:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alxyee1/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 deploy a live ReactJS/Redux website in under 10 minutes]]></title>
            <link>https://medium.com/hackernoon/how-to-deploy-a-live-reactjs-redux-website-in-under-10-minutes-cadf73cfc75a?source=rss-fbab5796799a------2</link>
            <guid isPermaLink="false">https://medium.com/p/cadf73cfc75a</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Alex Yee]]></dc:creator>
            <pubDate>Tue, 23 May 2017 18:42:37 GMT</pubDate>
            <atom:updated>2017-07-19T16:29:40.882Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BSqvfJPIk1kTnJcM0QsuBg.jpeg" /></figure><p>Ever had an webapp idea that you wanted to quickly prototype and send to people? After going to 8+ hackathons and winning over $105,000 in prize money, I’ve found a pretty good way to get a fully functional website up and running in &lt; 10 minutes.</p><p>Preview of deployed website (<a href="http://onederful-quickstart.s3-website-us-west-2.amazonaws.com/">demo</a>)</p><p>TL;DR steps:</p><ol><li>Get ReactJS running locally using a boilerplate (time: ~2 minute)</li><li>Set up AWS (Amazon Web Services) S3 bucket (time: ~5 minutes)</li><li>Create AWS user credentials to upload files to S3 (time ~2 minute)</li><li>Deploy boilerplate to AWS (time: ~1 minute)</li><li>Verify it works &amp; start building your app!</li></ol><p><strong>Prerequisites:</strong></p><p><a href="https://nodejs.org/en/download/">Node.j</a>s (version &gt; v6.0)</p><p><a href="https://yarnpkg.com/lang/en/docs/install/">Yarn</a></p><p><a href="https://aws.amazon.com/">AWS</a> account (everything here is covered under the free tier)</p><h4>1. Get ReactJS running locally using a boilerplate (time: ~2 minute)</h4><p><em>a) Clone the boilerplate (run below commands in your terminal)</em></p><pre>$ git clone -o onederful-quickstart -b master --single-branch \<br>       https://github.com/alxyee/onederful-quickstart.git NameOfApp<br>$ cd NameOfApp</pre><p><em>b) Install all libraries</em></p><pre>$ yarn install</pre><p><em>c) Get React running locally (</em><a href="http://localhost:3000/"><em>http://localhost:3000/</em></a><em>)</em></p><pre>$ yarn start</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ob_Vw29LZfSazhDAWxDyWQ.png" /><figcaption>It takes a couple seconds to build, but when its done go to <a href="http://localhost:3000/">http://localhost:3000/</a> in your browser</figcaption></figure><h4>2. Set up AWS S3 bucket (time: ~5 minutes)</h4><p><em>a) Log into AWS console and click on S3</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/179/1*uXAdx-9XfGzL0tuXGC9ckw.png" /></figure><p><em>b) Click create bucket and enter a Bucket name(example: </em><strong><em>onederful-quickstart</em></strong><em>). Click Next through all the remaining steps and create the bucket.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cWxeGquAA5zoeQ91c8acVQ.png" /><figcaption>In Bucket name, use a unique name for your app</figcaption></figure><p><em>c) On the list view, click on the newly created bucket</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nst9s22pdifeDndc5Rh43g.png" /><figcaption>Your newly created bucket should be in the list view</figcaption></figure><p><em>d) A popup will show up, click on properties</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*Azq4dwCvwvq5R61nt_7EAw.png" /><figcaption>Clicking on the properties panel will redirect you to the properties tab for the bucket</figcaption></figure><p><em>e) Click on Static website hosting and enter in </em><strong><em>index.html</em></strong><em> for both fields </em><strong><em>Index document</em></strong><em> and </em><strong><em>Error document</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iIZXbMcKxckIlXgBTzPDNw.png" /><figcaption>The endpoint is the public URL you can share with anyone. The error document being set to index.html enables the React app to define and handle all the routing rather than S3</figcaption></figure><p><em>f) Click on permissions tab and copy and paste the policy (replacing [YOUR BUCKET NAME] with your bucket name)</em></p><pre>{<br>    &quot;Version&quot;: &quot;2012-10-17&quot;,<br>    &quot;Statement&quot;: [<br>        {<br>            &quot;Sid&quot;: &quot;AllowPublicRead&quot;,<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Principal&quot;: &quot;*&quot;,<br>            &quot;Action&quot;: &quot;s3:GetObject&quot;,<br>            &quot;Resource&quot;: &quot;arn:aws:s3:::[YOUR BUCKET NAME]/*&quot;<br>        }<br>    ]<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9-59A26ZKPozBEIEjF25pg.png" /><figcaption>This policy allows everyone (principal: “*”) to see the objects (your website) in your bucket. If you don’t include this, the endpoint in step e) will return a 403 unauthorized error as it defaults the bucket to private.</figcaption></figure><h4>3. Create AWS user credentials to upload files to S3 (time ~2 minute)</h4><p><em>a) In the AWS console click on IAM (Identity Access Manager)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/194/1*Rsv7DVUXAc97fUoPzTZzwA.png" /></figure><p><em>b) Click on Users tab on the side panel. Add a User called s3-admin</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G-uDZsDbCKtCDVJlsOzOcg.png" /></figure><p><em>c) Attach the AmazonS3FullAccess policy</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OiPccjMoDN6f6QnLnUkCWw.png" /><figcaption>Use the AmazonS3FullAccess policy to enable the React app to use AWS APIs to deploy the website to S3</figcaption></figure><p><em>d) After creating the user, keep track of your </em><strong><em>Access key ID</em></strong><em> and </em><strong><em>Secret Access Key</em></strong><em> (the credentials will be used in the final step)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*igsgna9pT4o5hb4BWcCFBQ.png" /></figure><h4>4. Deploy boilerplate to AWS (time: ~1 minute)</h4><p><em>a) Change the credentials in the file (tools/s3-upload.js) replace: </em><strong><em>‘YOUR_BUCKET_NAME’</em></strong><em> with your bucket name </em><strong><em>(step 2b) ‘YOUR_AWS_ACCESS_KEY’</em></strong><em> with your </em><strong><em>Access key ID (step 3d)</em></strong><em> </em><strong><em>‘YOUR_AWS_SECRET_KEY’</em></strong><em> with your </em><strong><em>Secret Access Key (step 3d)</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PdBCnYTVfEsb8o7_0hFReA.png" /><figcaption>If you plan to save this project to a public git repo, make sure to hide your credentials. 1 way to do this is to import the credentials from a file that is in the .gitignore</figcaption></figure><p><em>b) Build and deploy the quickstart app (run this command whenever you want to deploy a change to your webapp)</em></p><pre>$ yarn publish:webapp</pre><h4>5. Verify it works &amp; start building your app!</h4><p>Test the endpoint (from 2e) in your browser and make sure it’s up and running. If it is, you’re ready for the real work of building your app!</p><p>To summarize : Used a boilerplate to quickly get a working webapp using ReactJS/Redux running on localhost. Set up AWS S3 to host the website with a public endpoint. Set up AWS credentials to enable us to deploy the boilerplate to S3 from the command line.</p><p>The AWS setup only has to be done once, so now if you make any changes to your webapp, you can run the deploy command (4b) and within seconds, the changes will be live.</p><h4>Next steps</h4><p>A couple other step by step tutorials in the pipeline:</p><ul><li>How to quickly build a yelp clone utilizing <a href="http://www.onederful.co/">www.onederful.co</a> GraphQL endpoint (ReactJS + GraphQL + wish driven design!)</li><li>How to query across multiple companies APIs using <a href="http://www.onederful.co/">www.onederful.co</a> GraphQL endpoint</li><li>Setting up a serverless GraphQL endpoint (Serverless framework — AWS Lambda)</li><li>Setting up a completely serverless webapp using AWS Cognito (for user management) + AWS Lambda</li><li>Using AWS Cloudfront + Route 53 to put a CDN in front of this webapp (enabling caching + https for custom domains/subdomains)</li></ul><h4>Resources</h4><p><a href="https://github.com/alxyee/onederful-quickstart">Onederful Quickstart Repo</a></p><p><a href="https://github.com/kriasoft/react-static-boilerplate">React Static Boilerplate</a></p><p><a href="http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html">AWS S3 Static Hosting Docs</a></p><figure><a href="http://bit.ly/HackernoonFB"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0hqOaABQ7XGPT-OYNgiUBg.png" /></a></figure><figure><a href="https://goo.gl/k7XYbx"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vgw1jkA6hgnvwzTsfMlnpg.png" /></a></figure><figure><a href="https://goo.gl/4ofytp"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gKBpq1ruUi0FVK2UM_I4tQ.png" /></a></figure><blockquote><a href="http://bit.ly/Hackernoon">Hacker Noon</a> is how hackers start their afternoons. We’re a part of the <a href="http://bit.ly/atAMIatAMI">@AMI</a> family. We are now <a href="http://bit.ly/hackernoonsubmission">accepting submissions</a> and happy to <a href="/service/mailto:partners@amipublications.com">discuss advertising &amp; sponsorship</a> opportunities.</blockquote><blockquote>If you enjoyed this story, we recommend reading our <a href="http://bit.ly/hackernoonlatestt">latest tech stories</a> and <a href="https://hackernoon.com/trending">trending tech stories</a>. Until next time, don’t take the realities of the world for granted!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*35tCjoPcvq6LbB3I6Wegqw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cadf73cfc75a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/how-to-deploy-a-live-reactjs-redux-website-in-under-10-minutes-cadf73cfc75a">How to deploy a live ReactJS/Redux website in under 10 minutes</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>