This repository contains the implementation of a faucet service for the Allfeat network. It includes an Axum-based backend and a Leptos-powered frontend that allows users to request test tokens 💸.
backend/– HTTP service exposing the REST API and WebSocket endpoints; also serves the web appfrontend/– Web application built with Leptos and Trunkshared/– Shared types used by both frontend and backend
- Rust (see
rust-toolchain.toml) trunkto build the frontendjust(optional) for task automation via thejustfile
Copy the example env file and fill in the variables:
cp backend/.env.example backend/.envEdit .env:
BACKEND_PORT=3000
FAUCET_AMOUNT=10
SENDER_SEED=
NODE_ENDPOINT_URL=
CF_SECRET=
CF_SITEKEY=Development mode:
just devProduction build:
just startThese commands build the frontend and launch the backend on http://localhost:3000.
POST /api/transfer– triggers token transfer after captcha validationGET /ws– WebSocket that streams live transaction statusGET /api/cf_sitekey– provides the Turnstile public sitekey to the frontend
The static frontend is built into frontend/dist and served by the backend.
This README provides a quick overview of how to configure, run, and understand the Allfeat Faucet — a test token distribution system for developers building on Allfeat 🛠️🎶