This project is a fork of official default starter, with some added features which I personally prefer.
- TypeScript support
- Offline support
- Added a service worker script
- eslint, tsc check, etc.
-
Create a Gatsby site.
gatsby new my-default-starter https://github.com/markselby9/gatsby-starter-typescript-pwa.git
-
Start developing.
Navigate into your new site’s directory and start it up.
cd my-default-starter/ gatsby develop
-
Open the source code and start editing!
Your site is now running at
https://localhost:8000
!Note: You'll also see a second link:
https://localhost:8000/___graphql
. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.Open the
my-default-starter
directory in your code editor of choice and editsrc/pages/index.tsx
. Save your changes and the browser will update in real time!