Getting Started
Setting up Filenest only takes a few minutes
Backend API Setup
First, use an adapter and a provider to set up Filenest in your API. This example uses the Next.js adapter and the uploadthing provider, but you can mix and match however you like.
Install dependencies
Feel free to choose any other adapter or provider of your choice
by replacing adapter-nextjs
or provider-uploadthing
with the
corresponding package names.
Instantiate a provider
Instantiate your provider of choice anywhere in your server code. This example is using uploadthing.
See the docs of your provider to know what config you need to pass it.
Initialize an adapter
Frontend Setup
Install dependencies
Create Filenest Components
Create your component anywhere in your app using createFilenestComponents
and pass it the client imported from your adapter package.
That import follows the convention:
import { client } from "@filenest/adapter-<name>/client"
You also need to tell Filenest the base endpoint for all Filenest API routes.
Build your UI
Now all that's left to do is build your UI.
You can take a look at a minimal setup guide
or check out a complete demo.
There is also documentation about individual components here.