This is my first attempt to build my ownn site with Gatsby.
-
Create a Gatsby site.
I used the Gatsby CLI to create a my default starter site.
gatsby new gatsby-blog
-
Ready to go.
I navigated into the new site directory and start it up.
cd gatsby-blog/ gatsby develop
-
Create a new github-CLI repository
# create a repository under github account using the current directory name gh repo create
This is my complete code for the Gatsby blog
-
Clone or download the code from this repo
# git clone git@github.com:itsyst/gatsby-blog.git gh repo create
-
Install the dependencies
cd gatsby-blog/ npm install
or
cd gatsby-blog/ yarn install
-
🚀Launch the project
gatsby develop
- You can have a look to the deployed instance of this project
https://gatsbys-blog.netlify.app
A quick look at the top-level files and directories in this project.
.
├── node_modules
├── src
├── .gitignore
├── .prettierrc
├── gatsby-browser.js
├── gatsby-config.js
├── gatsby-node.js
├── gatsby-ssr.js
├── LICENSE
├── package-lock.json
├── package.json
└── README.md
-
/node_modules
: This directory contains all of the modules of code used by this project. -
/src
: This directory will contain all of the code related to the front-end view of the site. -
.gitignore
: This file tells git which files it should not track. -
.prettierrc
: This is a configuration file for Prettier. -
gatsby-browser.js
: This file is where Gatsby expects to find any usage of the Gatsby browser APIs. -
gatsby-config.js
: This is the main configuration file for a Gatsby site.(config docs). -
gatsby-node.js
: This file is where Gatsby expects to find any usage of the Gatsby Node APIs. -
gatsby-ssr.js
: This file is where Gatsby expects to find any usage of the Gatsby server-side rendering APIs. -
LICENSE
: This is a Gatsby starter licensed under the 0BSD license. but i replaced it with my own license. -
package-lock.json
. This is an automatically generated file based on the exact versions of npm dependencies that were installed for this project. -
package.json
: A manifest file for Node.js projects. -
README.md
: A text file containing useful reference information about this project.