Weavy + Refine
Get started
Installing our demo Refine app is the absolute fastest and best way to learn how Weavy and Refine work together.
Follow our guide below, and you'll be up and running in minutes.
Installing our demo Refine app is the absolute fastest and best way to learn how Weavy and Refine work together.
Follow our guide below, and you'll be up and running in minutes.
This guide will show you what it looks like to integrate Weavy into a Refine app, quickly get a proof-of-concept up and running, and gain an understanding of what Weavy can do for your Refine apps.
Let's get started!
We assume you are well acquainted with the Refine API and familiar with setting up a Refine based app.
This tutorial is based on the standard Refine NextJS example using NextAuth with Ant Design.
You will need:
First we need an API key to communicate with the Weavy backend.
Before you can work with Weavy, you'll need to sign up for an account or sign into your existing account.
We have created an example where the Weavy components are added on top of the Refine example.
git clone https://github.com/weavy-labs/weavy-refine-example.git weavy-refine-example
weavy-refine-example
and run:npm install
To securely handle the Weavy configuration, we provide the environment url and the API key as environment variables.
Create an .env
file in the root of your example project and place the Weavy configuration there.
NEXT_PUBLIC_WEAVY_URL="WY_BACKEND_URL"
WEAVY_APIKEY="WY_API_*****************"
WY_BACKEND_URL
with the url to your Weavy environment.WY_API_*****************
with the API key to your Weavy environment.You haven't selected an API key. If you do - code snippets, scripts and files you download will automatically be updated with API key and backend URL.
Now, let's compile the project.
npm run build
npm run dev
.Start the project.
npm start
http://localhost:3000
to see the example in full action.We now have a complete Refine app running using Weavy components.
Make sure to explore:
Now, imagine all this in your app!
We need an API key to communicate with Weavy for authentication, etc
Select what technology you want to ask about
Get answers faster with our tailored generative AI. Learn more about how it works
This is a custom LLM for answering your questions. Answers are based on the contents of the documentation and this feature is experimental.
To access live chat with our developer success team you need a Weavy account.