You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# SvelteKit Template HIerarchy and Data fetching w/URQL Example
1
+
# SvelteKit Template Hierarchy and Data fetching w/URQL Example 🚀
2
2
3
-
In this example we show how to implement the WP Template Hierarchy in SvelteKit for use with a Headless WordPress backend using WPGraphQL. We use URQL for all routing and fetching page content.
3
+
In this example we show how to implement the **WordPress Template Hierarchy in SvelteKit** for use with a Headless WordPress backend using WPGraphQL. We use **URQL** for all routing and fetching page content.
4
4
5
5
## Getting Started
6
6
7
7
> [!IMPORTANT]
8
-
> Docker Desktop needs to be installed to run WordPress locally.
8
+
> **Docker Desktop** needs to be installed to run WordPress locally.
9
9
10
10
1. Run `npm run example:setup` to install dependencies and configure the local WP server.
11
11
2. Run `npm run example:start` to start the WP server and SvelteKit development server.
12
12
13
13
> [!NOTE]
14
14
> When you kill the long running process this will not shutdown the local WP instance, only SvelteKit. You must run `npm run example:stop` to kill the local WP server.
15
15
16
-
## Trouble Shooting
16
+
## Trouble Shooting 🛠️
17
17
18
-
To reset the WP server and re-run setup you can run `npm run example:prune` and confirm "Yes" at any prompts.
18
+
To reset the WP server and re-run setup you can run `npm run example:prune` and confirm "Yes" at any prompts.
0 commit comments