Remix Example
Remix example demonstrates how to integrate WunderGraph with Remix.run.
Installation
Configuration
Let's start by configuring WunderGraph. We will use the SpaceX API as an example.
What's notable here is that we're using templates.typescript.client
to generate our base client that is used by SWR @wundergraph/swr
package.
Next up is setting up the client and SWR hooks.
WunderGraph comes with a powerful framework for generating code. Here we are creating fully typed SWR hooks based on the operations of our WunderGraph application.
Define an Operation
Run a Query
Fetch data inside a loader, using the WunderGraph client.
Learn more
Deploy to WunderGraph Cloud
The easiest way to deploy your WunderGraph backend is to use WunderGraph Cloud. Enable the Vercel integration to deploy the Vite frontend to Vercel.