<?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: pitbull90</title>
    <description>The latest articles on DEV Community by pitbull90 (@pitbull90).</description>
    <link>https://dev.to/pitbull90</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%2F185474%2F397a294f-af8f-4256-887a-afa97414ab8e.jpeg</url>
      <title>DEV Community: pitbull90</title>
      <link>https://dev.to/pitbull90</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pitbull90"/>
    <language>en</language>
    <item>
      <title>Installing and using the CLI</title>
      <dc:creator>pitbull90</dc:creator>
      <pubDate>Mon, 01 Jul 2019 03:07:37 +0000</pubDate>
      <link>https://dev.to/pitbull90/installing-and-using-the-cli-2n40</link>
      <guid>https://dev.to/pitbull90/installing-and-using-the-cli-2n40</guid>
      <description>&lt;p&gt;If you're anything like me, working in the Terminal (Command Prompt) can be a little intimidating sometimes, but boy is it super helpful when configuring all the tools you'll need before even writing the first line of your actual application code.&lt;/p&gt;

&lt;p&gt;And now, thanks to some great React Engineers down at Facebook, we have the ever so helpful &lt;a href="https://github.com/facebook/create-react-app" rel="noopener noreferrer"&gt;create-react-app cli&lt;/a&gt;. So, let us jump into the basic installing and using of the create-react-app cli. A few things before we begin; I will be referring to the Terminal since I primarily work on Mac. We will also be working out of VS Code (&lt;a href="https://code.visualstudio.com/download" rel="noopener noreferrer"&gt;Visual Studio Code&lt;/a&gt;) but you could use your preferred text editor.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Open up the terminal. First, you will need to install &lt;a href="https://nodejs.org/en/download/" rel="noopener noreferrer"&gt;Node.js&lt;/a&gt; onto your machine if you have not done so yet.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;To check npm version - Type: &lt;strong&gt;npm —version&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;&lt;p&gt;Type: &lt;strong&gt;sudo npm install -g install create-react-app&lt;/strong&gt;. The “-g” stands for global, this is to access this from anywhere on our system. Then press enter.&lt;/p&gt;&lt;/li&gt;

&lt;li&gt;&lt;p&gt;To create your application Type: &lt;strong&gt;create-react-app contactmanager&lt;/strong&gt;. “contactmanager” is the name of the application, this can be anything you would like (the name of your app). You should get a success screen like this:&lt;/p&gt;&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fo5lcv3p3ldwe1d5m6qy3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fo5lcv3p3ldwe1d5m6qy3.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Then navigate into the application folder “contactmanager” to navigate to your application folder - Type: &lt;strong&gt;cd contactmanager&lt;/strong&gt;. Then to open up the files in Visual Studios - Type: &lt;strong&gt;code .&lt;/strong&gt; (Make sure to include that period, it's code + space + period.)

&lt;ul&gt;
&lt;li&gt;If “code .” did not work, head into VS code and go to your command pallet and - Type: &lt;strong&gt;Command+Shift+P&lt;/strong&gt; then - Type: &lt;strong&gt;shell&lt;/strong&gt; and then select the one that says: &lt;strong&gt;Shell Command: install ‘code’ command in PATH&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F15qcahv6nfnv8mj4j82u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F15qcahv6nfnv8mj4j82u.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Now to start the development server. - Type: &lt;strong&gt;npm start&lt;/strong&gt;. This will open up the app in your browser. To stop the dev server - Type: &lt;strong&gt;Press(control)c&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Type: &lt;strong&gt;npm run build&lt;/strong&gt; to generate a build folder in your Visual Studios.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's it! Now you're ready to start building out your React.js application. ✌️&lt;/p&gt;

</description>
      <category>react</category>
      <category>javascript</category>
      <category>node</category>
      <category>webdev</category>
    </item>
    <item>
      <title>First Post</title>
      <dc:creator>pitbull90</dc:creator>
      <pubDate>Mon, 24 Jun 2019 14:11:17 +0000</pubDate>
      <link>https://dev.to/pitbull90/first-post-1g30</link>
      <guid>https://dev.to/pitbull90/first-post-1g30</guid>
      <description>&lt;p&gt;Hello World!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
