<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ninateng</title>
    <description>The latest articles on DEV Community by ninateng (@ninateng).</description>
    <link>https://dev.to/ninateng</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F272740%2F00f09a4a-3fba-423a-a511-7d7bff988974.jpeg</url>
      <title>DEV Community: ninateng</title>
      <link>https://dev.to/ninateng</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ninateng"/>
    <language>en</language>
    <item>
      <title>Create and Deploy, React &amp; Heroku: Magical Guide</title>
      <dc:creator>ninateng</dc:creator>
      <pubDate>Tue, 19 Nov 2019 00:29:45 +0000</pubDate>
      <link>https://dev.to/ninateng/create-and-deploy-react-heroku-magical-guide-3jbn</link>
      <guid>https://dev.to/ninateng/create-and-deploy-react-heroku-magical-guide-3jbn</guid>
      <description>&lt;p&gt;Hello my dearest noobs,&lt;/p&gt;

&lt;p&gt;I would like to share with you the EASIEST and FASTEST steps to create and deploy your react app with Heroku...&lt;/p&gt;

&lt;p&gt;~&lt;em&gt;cough*cough&lt;/em&gt;~ even if you've already completed your project ~&lt;em&gt;cough&lt;/em&gt;~&lt;/p&gt;

&lt;p&gt;...this is p-u-r-e magic...&lt;/p&gt;

&lt;p&gt;Please follow these wonderful steps :&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Make a repository on GitHub&lt;/li&gt;
&lt;li&gt;Open up your terminal&lt;/li&gt;
&lt;li&gt;[ cd ] into folder&lt;/li&gt;
&lt;li&gt;[ npx/npm/yarn create-react-app nameofapp ]

&lt;ul&gt;
&lt;li&gt;refer back to &lt;a href="https://create-react-app.dev/docs/getting-started/"&gt;https://create-react-app.dev/docs/getting-started/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;[ cd ] into that new file&lt;/li&gt;
&lt;li&gt;[ git init ] -&amp;gt; [ git add . ] --&amp;gt; [ git commit -m "comment here" ] &lt;/li&gt;
&lt;li&gt;[ heroku create nameofurlyouwant ]&lt;/li&gt;
&lt;li&gt;[ git remote add heroku --place-second-url-given-here-- ]&lt;/li&gt;
&lt;li&gt;[ git push heroku master ]&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;...if it fails...&lt;br&gt;
...perhaps you've saved yarn, you'll need to follow these additional steps...&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;[ yarn install ]&lt;/li&gt;
&lt;li&gt;[ git add yarn.lock ]
&lt;/li&gt;
&lt;li&gt;[ git commit -m "updated yarn lockfile" ]&lt;/li&gt;
&lt;li&gt;[ git push heroku master ] &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;...these next steps connect your GitHub repository...&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go to Heroku, click on the name you've set for this app&lt;/li&gt;
&lt;li&gt;Click on "Deploy"&lt;/li&gt;
&lt;li&gt;Go to "Deployment Method" and connect your GitHub&lt;/li&gt;
&lt;li&gt;Scroll down &amp;amp; follow steps for "Automatic Deploys"&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;...last steps are optional, adding a buildpack...&lt;/p&gt;

&lt;p&gt;For additional information refer to &lt;a href="https://www.heroku.com/elements/buildpacks"&gt;https://www.heroku.com/elements/buildpacks&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go to setting tabs on Heroku&lt;/li&gt;
&lt;li&gt;Scroll down to "Buildpacks"

&lt;ul&gt;
&lt;li&gt;refer back to &lt;a href="https://www.heroku.com/elements/buildpacks"&gt;https://www.heroku.com/elements/buildpacks&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;do some additional research to see which you'd like best!&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I really appreciate you stopping by to give this post a read! Often, I have struggled with the deployment process. I would always run into small issues and it would fail. This has been the most efficient way I have found to create a react app and deploy it on Heroku!&lt;/p&gt;

&lt;p&gt;Again here are the websites to refer back to:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://create-react-app.dev/docs/getting-started/"&gt;https://create-react-app.dev/docs/getting-started/&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.heroku.com/elements/buildpacks"&gt;https://www.heroku.com/elements/buildpacks&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sincerely,&lt;br&gt;
yOuR NoObNiNja&lt;/p&gt;

</description>
      <category>react</category>
      <category>heroku</category>
      <category>javascript</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
