Getting started with gatsby
Getting started with gatsby
📝 Posted on 2021-06-15T04:13:46Z
1 min read

Getting started with gatsby

#gatsby#javascript#react#beginners

Requirements

Installing gatsby cli

npm i -g gatsby-cli

Before creating a site you should know about gatsby starters. Starters are nothing but boilerplates there are hundred's of boilerplates (starters) available from gatsby official site.

Here you can choose Gatsby starter

Creating new gatsby site from starter

gatsby new {name_of_your_site} {starter-repo-link}

Once

gatsby new
is successful then run the following commands

cd {name_of_your_site}
gatsby develop

Project structure will be like this

/
|-- /.cache
|-- /plugins
|-- /public
|-- /src
    |-- /pages
|-- /static
|-- gatsby-config.js
|-- gatsby-node.js
|-- gatsby-browser.js

Now you can check your site at localhost:8000

Saketh
Author : Saketh
Software @Observe.ai
LinkedInPortfolioGitHub