I created this project to start working with Gatsby and React following the gatsby official tutorial, the purpose of the project is to get familiar with Gatsby, I used a simple blog website that I had on my PC, so if you want to check it don't actually judge or take in consideration the functionalities or the styling XD.
PS: If you are working with the data/db.json file to fetch data using the "Localhost:5000/blogs" don't forget to start the json server and to do that use the following command:
# Starting the json server
npx json-server --watch data/db.json --port 5000
-
Create a Gatsby site.
Use the Gatsby CLI to create a new site, specifying the minimal starter.
# create a new Gatsby site using the minimal starter npm init gatsby
-
Start developing.
Navigate into your new siteβs directory and start it up.
cd my-gatsby-site/ npm run develop
-
Open the code and start customizing!
Your site is now running at http://localhost:8000!
Edit
src/pages/index.js
to see your site update in real-time! -
Learn more
Deploy this starter with one click on Netlify: