iBTC Website is an interface for interacting with DLC.Link smart contracts and the Bitcoin blockchain. This platform provides a secure and efficient self-custodial way to lock Bitcoin as collateral and mint iBTC tokens based on the amount of Bitcoin locked.
- Clone the repository
- Install dependencies:
yarn install
- Set up environment variables using the template (see Environment Setup below)
The project includes an .env.template file that serves as a template for all required environment variables. To set up your environment:
-
Copy
.env.templatefor each environment you need:.env.localhostfor local development.env.devnetfor devnet environment.env.testnetfor testnet environment.env.mainnetfor production environment
-
Fill in the required values in each environment file according to the comments in the template
Note: Never commit actual .env files to version control.
yarn localhost # Start development server with localhost config
yarn devnet # Start development server with devnet config
yarn testnet # Start development server with testnet config
yarn mainnet # Start development server with mainnet config
yarn build # Build the production applicationTo run the application locally with Netlify functions and environment variables:
-
Login to Netlify CLI:
netlify login
-
Link your project to a Netlify site:
netlify link
-
Start local development with Netlify functions enabled:
netlify dev
This will start the development server with access to Netlify functions and environment variables.