Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.env
node_modules/
package-lock.json
20 changes: 12 additions & 8 deletions READ.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@
# Project Structure

```

/lightning-app
├── /server
├── index.js # Express app
├── grpc.js # lnd gRPC client setup
├── invoice.js # Invoice creation/listener
│ ├── index.js # Express app
│ ├── grpc.js # lnd gRPC client setup
│ ├── invoice.js # Invoice creation/listener
├── /client
│ ├── index.html # Basic frontend
│ ├── app.js # Fetch invoice, WebSocket events
├── .env.example # Connection variables
├── package.json # Node.js dependencies
├── README.md # Setup instructions
│ ├── index.html # Basic frontend
│ ├── app.js # Fetch invoice, WebSocket events
├── .env.example # Connection variables
├── package.json # Node.js dependencies
├── README.md # Setup instructions

```

```
Binary file added client/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 7 additions & 8 deletions client/index.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<head>
<meta charset="UTF-8" />
<title>Lightning Payment App</title>
</head>
</head>

<body>
<body>
<h1>Pay with Lightning!</h1>
<input type="number" id="amount" placeholder="Amount in sats" />
<button id="pay-button">Generate Invoice</button>

<div id="qrcode"></div>

<script src="app.js"></script>
</body>

</html>
</body>
</html>
Loading