This is a Next.js demo application for the Tezos to Etherlink FA Bridge SDK. This demo demonstrates how the SDK can be utilized in a UI application.
- Node.js and npm installed on your system.
- Clone the repository:
git clone [email protected]:skubarenko/tezos-etherlink-bridge-ts-sdk-demo.git cd tezos-etherlink-bridge-ts-sdk-demo
- Install dependencies:
npm install
To run the app in HTTPS mode (required by wallets for secure connections), you need to generate a self-signed certificate:
-
Install OpenSSL
-
Create a
certificates
directory:mkdir certificates
-
Generate the certificate: Run the following command in the root of the repository:
openssl req -x509 -nodes -days 365 -newkey rsa:2048 \ -keyout certificates/localhost.key \ -out certificates/localhost.crt \ -subj "/CN=localhost"
-
Run the development server:
npm run dev
-
Open your browser and navigate to:
https://localhost:3000/
Note: Since the certificate is self-signed, your browser may display a warning about the connection not being secure. You can safely proceed for local development.