Quick Start
1
2
Prepare Frontend Code
# Clone the template project
git clone https://github.com/RelayX-Protocol/RelayApp-React-Template.git
cd RelayApp-React-Template
# Install dependencies
npm install
# Configure RelayApp address to environment variable
# Replace your_relayapp_address with the RelayApp address created in Step 1
echo "VITE_RELAYAPP_ADDRESS=your_relayapp_address" > .env.production
# Build the frontend application
npm run build3
Sign and Package
workspace/
βββ 1J7JEhjW1wHhaw1ZtDxAdjuehapRa7og1m/ # RelayApp project folder (frontend build output)
β βββ index.html
β βββ assets/
β βββ ...
βββ 1J7JEhjW1wHhaw1ZtDxAdjuehapRa7og1m.config/ # Configuration folder
βββ config.json
βββ owner.json
βββ master.json
βββ agents/# 1. Create working directory
mkdir -p workspace
# 2. Copy the built frontend project to the working directory
cp -r 1J7JEhjW1wHhaw1ZtDxAdjuehapRa7og1m workspace/1J7JEhjW1wHhaw1ZtDxAdjuehapRa7og1m
# 3. Move the configuration directory to the working directory
mv 1J7JEhjW1wHhaw1ZtDxAdjuehapRa7og1m.config workspace/
# 4. Enter the working directory
cd workspace
# 5. Execute signing
relayx-cli signFurther Learning
Last updated