Fork, configure and run locally
Fork the white-label app, set its environment values and run it on your own computer.
You can run your own copy of BlockMail & BlockChat. It is a Nuxt 3 app (client-side only) that uses the 4thTech SDK. The code is on GitHub: 4thtech/white-label-client.
Figure: How the white-label app is layered, from Nuxt pages down to the SDK, the wallet and the services it talks to.
Before you start
Node.js 22 or later (the project requires it).
yarn, npm or pnpm.
A WalletConnect project ID, if you want WalletConnect in the wallet dialog.
Optional: a PollinationX endpoint and token, if you want to preconfigure storage for all users.
Steps
Fork the repository on GitHub, then clone your fork.
Install the dependencies.
Copy
.env.exampleto.envand fill it in. Use your own values; never commit.env.
PORT, HOST
The port and host the server uses. The example sets 80 and 0.0.0.0.
WALLET_CONNECT_ID
Your WalletConnect project ID. Example: <your-walletconnect-project-id>.
MAIL_APP_ID
Your app ID for mail. If empty, the SDK uses the zero app ID.
CHAT_APP_ID
Your app ID for chat.
POLLINATIONX_URL
A PollinationX endpoint for everyone using your app. Example: <your-pollinationx-url>.
POLLINATIONX_TOKEN
The matching token. Example: <your-pollinationx-token>. Keep it out of the repository.
If you leave POLLINATIONX_URL and POLLINATIONX_TOKEN empty, each user connects their own PollinationX storage NFT from the dashboard. The token is shipped to the browser, so treat it as visible to your users. See Set up storage.
Start the development server.
Open the address the server prints. The README uses
http://localhost:3000. The app starts on the connect page.
Contracts and networks
The app supports the 12 networks on the Networks page and uses the OCC v1 contracts configured in the SDK. Addresses are on the Deployments page.
Next
Brand it, then build and deploy.
Last updated
