Getting Started with Gatsby
Files as Pages
adding pages is as simple as adding a file to the directory ‘pages’, adding a directories also works fine.
- react component
starting a Gatsby site
npm install -g gatsby
- generate project:
gatsby new [SITE_DIRECTORY] [URL_OF_STARTER]
- if URL_OF_STARTER is left blank default is used.
- default starter:
- minimal starter:
- startup the development server:
- do all your edits etc.
- when ready to serve your site.
- all the static files for the site should not be in the