Creating a new empty Node/Gatsby repo

Tags: [[Guides]]

  • Open terminal
  • Navigate to wherever you would like to store your project
  • mkdir first-gatsby-site
  • open first-gatsby-site in vscode
  • npm init -y
  • npm install -s react react-dom gatsby
  • gatsby develop
  • open localhost:8000 and see 404 page with gatsby text
  • create .gitignore
  • Paste in
**/.DS_Store
node_modules
public
.cache
  • git init
  • git add .
  • git commit -m "Initial Commit"