Frontend
https://github.com/open-fractal/flur (opens in a new tab)
The frontend is a Next.js (opens in a new tab) application that provides the user interface for interacting directly with CAT Protocol contracts using unisat.
Getting Started
You can clone the repo and run it locally to get started.
git clone https://github.com/open-fractal/flur.git
cd flurInstall the dependencies:
npm install
# or
yarn installRun the development server:
npm run dev
# or
yarn devOpen http://localhost:3000 (opens in a new tab) with your browser to see the result.
Configuration
Once the frontend is running locally, you may decide that you want to connect to a local instance of the Tracker API instead of the public one. To do this, you can set the NEXT_PUBLIC_API_URL environment variable to the URL of your local Tracker API instance. Follow the backend guide first to get the Tracker API running locally.
Create a .env.local file in the root directory with the following environment variables:
NEXT_PUBLIC_API_URL=http://localhost:3001In this example, ensure the Tracker API is running locally at http://localhost:3001.