This repository is an example of how to integrate Formbricks with a Remix application.
-
Created a new Remix application:
npx create-remix@latest
-
Navigated to the created application directory:
cd remix
-
Installed existing dependecies:
npm install
-
Installed the Formbricks JS library:
npm install --save @formbricks/js
-
Added the below in my app/root.tsx file:
import formbricks from "@formbricks/js"; if (typeof window !== "undefined") { formbricks.init({ environmentId: "<environment-id>", apiHost: "<api-host>", debug: true, // remove when in production }); }
-
Edited the Formbricks Enviornment ID and API Host
-
Start the Remix development server:
npm dev
With these steps, we had a running Remix application with Formbricks integrated.