This section provides a step-by-step guide on how to set up your environment, install dependencies, and run the project along with a local API proxy for development purposes.
Start by cloning the repository to your local machine:
git clone <repository-url>
cd <project-directory-name>
Before running the project, you must configure environment-specific variables for development environment.
-
Development Environment:
Copy the
.env.examplefile, renaming it to.env:cp .env.example .envOpen this file and add the development API URL:
VITE_ENABLE_PROXY=true VITE_NETWORK=mainnet VITE_QLI_API_URL=/dev-proxy-qli-api VITE_QUBIC_RPC_URL=/dev-proxy-archiver-api VITE_STATIC_API_URL=/dev-proxy-static-apiEnvironment Variables Explained:
VITE_ENABLE_PROXY: Enable local development proxy (set totruefor development)VITE_NETWORK: Network mode (mainnetortestnet)VITE_QLI_API_URL: Qubic Li API URL for transactions and address historyVITE_QUBIC_RPC_URL: Qubic RPC/Archiver URL for network stats and blockchain dataVITE_STATIC_API_URL: Qubic Static API URL for smart contracts, tokens, and exchange data
Ensure these files are not committed to the repository to protect sensitive information.
The following secrets must be configured in GitHub for deployment:
| Secret | Description | Branches |
|---|---|---|
STATIC_API_URL |
Production static data URL | main, testnet |
STATIC_API_URL_STAGING |
Staging static data URL | staging |
STATIC_API_URL_DEV |
Development static data URL | dev |
QLI_API_URL |
Qubic Li API URL | all |
QUBIC_RPC_URL |
Qubic RPC URL (mainnet) | all except testnet |
QUBIC_RPC_URL_TESTNET |
Qubic RPC URL (testnet) | testnet |
Install the project's dependencies by running:
pnpm install --frozen-lockfile
This command installs all necessary dependencies required for the project to run.
To start the project in development mode, run:
pnpm run dev
This will start the Vite React development server, typically available at http://localhost:5173. Navigate to this URL in your browser to view the application.
As we use some parts from the 451 Package to our Wallet also apply the Anti-Military License. See https://github.com/computor-tools/qubic-js Further our Wallet Code is protected by the AGPL-3.0 License. You may use our Source-Code for what you need to do business.