This webapp is the front-end component of the Lightning EVM Bridge project, designed to interact seamlessly with the blockchain and the Lightning Network. Built with Next.js, it provides a user-friendly interface to initiate and monitor transactions across EVM chains and the Lightning Network through the lightning server.
- Node.js (v18 LTS)
- Yarn (v1 or v2+)
-
Clone the repository if you haven't already:
git clone https://github.com/diyahir/lightning-dapp.git cd lightning-dapp/packages/nextjs
-
Install dependencies:
yarn install
-
Set up the
.env
file:Copy the
sample.env
orsample.live.env
file depending on your setup preference (local or using pre-configured remote services) and rename it to.env
. Fill in the necessary environment variables:
To start the webapp locally, you can run:
yarn dev
This command starts the Next.js development server on http://localhost:3000. Open your browser to this URL to view and interact with the webapp.
-
Build the application:
yarn build
-
Start the production server:
yarn start
This compiles the application to optimized production code and runs it on the default Next.js production server.