This is an exploratory example of building a GatsbyJS site backed by a self-hosted Strapi CMS instance.
- Navigate to
backend
directory npm install
- Launch Strap instance
npm run develop
- Browser should open to
localhost:1337
, setup an account as prompted (local only) - Feel free to poke around the default dataset
- Navigate to
frontend
directory npm install
- Ensure the backend is running, launch Gatsby
npm run develop
- Site should open at
localhost:8000
TS types are autogenerated for Gatsby & GraphQL queries. GraphQL schema is introspected from the running UI server by using .graphqlconfig
- IDE can generate a GraphQL schema from that file which is used on UI startup to generate datatypes for Strapi assets.
MIT