<?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: Marjorie Albrecht Ray</title>
    <description>The latest articles on DEV Community by Marjorie Albrecht Ray (@codewryter).</description>
    <link>https://dev.to/codewryter</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%2F277179%2F74c12cf8-25c7-4d28-9dff-55f2996e4b8b.jpeg</url>
      <title>DEV Community: Marjorie Albrecht Ray</title>
      <link>https://dev.to/codewryter</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/codewryter"/>
    <language>en</language>
    <item>
      <title>Notes on Getting to Gatsby</title>
      <dc:creator>Marjorie Albrecht Ray</dc:creator>
      <pubDate>Fri, 22 Nov 2019 18:15:11 +0000</pubDate>
      <link>https://dev.to/codewryter/notes-on-getting-to-gatsby-ag8</link>
      <guid>https://dev.to/codewryter/notes-on-getting-to-gatsby-ag8</guid>
      <description>&lt;p&gt;First I read that Gatsby.js is a “great point of entry for learning to code websites”. &lt;/p&gt;

&lt;p&gt;I’m excited. I normally build simple sites with WordPress and only know a bit of PHP &amp;amp; Javascript.&lt;/p&gt;

&lt;p&gt;I read that React and GraphQL are crucial for Gatsby, but if you don’t know them, Gatsby is an excellent tool to learn them. (I don't know them).&lt;/p&gt;

&lt;h2&gt;What is Gatsby.js&lt;/h2&gt;

&lt;p&gt;From &lt;a href="https://www.gatsbyjs.org/"&gt;https://www.gatsbyjs.org/&lt;/a&gt; I read that “Gatsby is a free and open source framework based on React that helps developers build blazing fast websites and apps.”&lt;/p&gt;

&lt;p&gt;Gatsby is a “static site generator” - it doesn’t depend on a web server.&lt;br&gt;
&lt;a href="https://www.staticgen.com/"&gt;https://www.staticgen.com/&lt;/a&gt; - A List of all Static Site Generators&lt;/p&gt;

&lt;p&gt;Gatsby grabs your data from other sources: Markdown, JSON, CMS, APIs. Then, at build time, it creates an internal GraphQL server of this data.&lt;/p&gt;

&lt;p&gt;Gatsby CLI is a published npm package. Command Line Interface (CLI) is a text based way of interacting with your computer. npm is the world’s largest software registry. &lt;a href="https://docs.npmjs.com/about-npm/"&gt;https://docs.npmjs.com/about-npm/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'm following instructions for setting up my development environment here: &lt;br&gt;
&lt;a href="https://www.gatsbyjs.org/tutorial/part-zero/"&gt;https://www.gatsbyjs.org/tutorial/part-zero/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Homebrew is not happy about my late 2009 iMac with OS Sierra.&lt;br&gt;
I receive this message:&lt;br&gt;
==&amp;gt; You are using macOS 10.12.&lt;br&gt;
==&amp;gt; We (and Apple) do not provide support for this old version.&lt;br&gt;
This installation may not succeed. After installation, you will encounter build failures with some formulae. Please create pull requests instead of asking for help on Homebrew's GitHub, Discourse, Twitter or IRC. You are responsible for resolving any issues you experience while you are running this old version.&lt;/p&gt;

&lt;p&gt;I also have an outdated version of &lt;a href="mailto:core-js@2.6.10"&gt;core-js@2.6.10&lt;/a&gt;&lt;br&gt;
I ran:&lt;br&gt;
npm install --save core-js@^3&lt;br&gt;
To update - but it did not update.&lt;/p&gt;

&lt;p&gt;I have permissions problems and read this below but now I am getting discouraged, I'm thinking I can't do this, my computer is too old.&lt;br&gt;
&lt;a href="https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally"&gt;https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I keep googling.&lt;/p&gt;

&lt;p&gt;I read about not using sudo with npm&lt;br&gt;
&lt;a href="https://medium.com/@ExplosionPills/dont-use-sudo-with-npm-still-66e609f5f92"&gt;https://medium.com/@ExplosionPills/dont-use-sudo-with-npm-still-66e609f5f92&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I still couldn’t get Gatsby CLI to install so I tried&lt;br&gt;
npx gatsby new gatsby-site&lt;br&gt;
from &lt;a href="https://www.gatsbyjs.org/docs/quick-start"&gt;https://www.gatsbyjs.org/docs/quick-start&lt;/a&gt;&lt;br&gt;
I get this message:&lt;br&gt;
Your new Gatsby site has been successfully bootstrapped. Start developing it by running:&lt;/p&gt;

&lt;p&gt;cd gatsby-site&lt;br&gt;
  gatsby develop&lt;/p&gt;

&lt;p&gt;I run gatsby develop but it's not found&lt;br&gt;
-bash: gatsby: command not found&lt;/p&gt;

&lt;p&gt;So, despite article about not using sudo, I use it anyway and run&lt;br&gt;
sudo npm install -g gatsby-cli --unsafe-perm&lt;/p&gt;

&lt;p&gt;Next thing, I see the words:&lt;/p&gt;

&lt;h3&gt;Success!&lt;/h3&gt;

&lt;p&gt;&lt;em&gt;Welcome to the Gatsby CLI! Please visit &lt;a href="https://www.gatsbyjs.org/docs/gatsby-cli/"&gt;https://www.gatsbyjs.org/docs/gatsby-cli/&lt;/a&gt; for more information.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;On my browser I enter &lt;a href="http://localhost:8000/"&gt;http://localhost:8000/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Wow, there it is, my first little starter Gatsby site.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--paQhxB4b--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/lplijf9gxl1mdnjxvuw6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--paQhxB4b--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/lplijf9gxl1mdnjxvuw6.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>gatsby</category>
    </item>
  </channel>
</rss>
