After creation, a config.json configuration file will be generated in the current directory.
⚠️ Important Notice: You must edit the config.json file according to your actual requirements for custom configuration, otherwise the application may not function properly.
Clone the official template project and start development:
# Clone the template projectgitclonehttps://github.com/RelayX-Protocol/RelayApp-React-Template.gitcdRelayApp-React-Template# Install dependenciesnpminstall# Configure RelayApp address to environment variable# Replace your_relayapp_address with the RelayApp address created in Step 1echo"VITE_RELAYAPP_ADDRESS=your_relayapp_address">.env.production# Build the frontend applicationnpmrunbuild
Rename the built frontend files to the MarsApp address, and ensure the .config configuration directory is at the same level as the project folder.
🔔 Important Note: The relayx-cli tool is installed globally, so you only need to execute commands in the working directory that contains both the project folder and configuration folder.
# 1. Create working directorymkdir-pworkspace# 2. Copy the built frontend project to the working directorycp-r1J7JEhjW1wHhaw1ZtDxAdjuehapRa7og1mworkspace/1J7JEhjW1wHhaw1ZtDxAdjuehapRa7og1m# 3. Move the configuration directory to the working directorymv1J7JEhjW1wHhaw1ZtDxAdjuehapRa7og1m.configworkspace/# 4. Enter the working directorycdworkspace# 5. Execute signingrelayx-clisign
Key Points:
The naming of the project folder and configuration folder must strictly follow the format {MarsAppAddress} and {MarsAppAddress}.config
All subsequent relayx-cli commands must be executed in the working directory (workspace) that contains both folders
After successful signing, you can proceed with the publishing operation.