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.template
for each environment you need:.env.localhost
for local development.env.devnet
for devnet environment.env.testnet
for testnet environment.env.mainnet
for 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 application
To 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.