Prerequisites

To follow this example, you’ll need:

  • Node.js 18+ and npm installed on your local development machine.
  • Secret Key.
  • Raccoon Passcode.

If you don’t have your Secret key or Raccoon Passcode yet, you can fetch them from Secrets page and Users page on the platform.

Clone the example

Clone the react example using the command given below

git clone -b tail-react https://github.com/raccoonaihq/raccoonai-cookbook raccoon-tail-react

Configure Environment Variables

Create your .env file from the example given in example.

cd raccoon-tail-react
cp .env.example .env.local

Edit the environment variables.

VITE_APP_RACCOON_SECRET_KEY=<secret-key>
VITE_APP_RACCOON_PASSCODE=<raccoon-passcode>

Run the example project

Install the requirements and run the application.

npm install
npm run dev

Your application will start running on http://localhost:5173/. The example displays all the apps available to link for the user, and let’s them link and unlink their accounts.


Check out the API Reference to know more about Tail SDK.

Was this page helpful?