Skip to content

Instantly share code, notes, and snippets.

@HusseinMorsy
Last active October 27, 2018 08:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HusseinMorsy/fe4c9181ff57959f0843644643e61f92 to your computer and use it in GitHub Desktop.
Save HusseinMorsy/fe4c9181ff57959f0843644643e61f92 to your computer and use it in GitHub Desktop.
Greate a gatsby app without the gatsby-cli
  1. Create a new folder mkdir gatsby-demo && cd $_
  2. create package.json npm init -y
  3. add packages npm i react react-dom gatsby
  4. create page directory mkdir -p src/pages/
  5. create index page in src/pages/index.js:
import React from "react"

export default () => <div>Hello world!</div>
  1. run npx gatsby develop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment