Initial commit: Lightning Lottery - Bitcoin Lightning Network powered lottery

Features:
- Lightning Network payments via LNbits integration
- Provably fair draws using CSPRNG
- Random ticket number generation
- Automatic payouts with retry/redraw logic
- Nostr authentication (NIP-07)
- Multiple draw cycles (hourly, daily, weekly, monthly)
- PostgreSQL and SQLite database support
- Real-time countdown and payment animations
- Swagger API documentation
- Docker support

Stack:
- Backend: Node.js, TypeScript, Express
- Frontend: Next.js, React, TailwindCSS, Redux
- Payments: LNbits
This commit is contained in:
Michilis
2025-11-27 22:13:37 +00:00
commit d3bf8080b6
75 changed files with 18184 additions and 0 deletions

32
front_end/package.json Normal file
View File

@@ -0,0 +1,32 @@
{
"name": "lightning-lotto-frontend",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next dev -p ${PORT:-3001}",
"build": "next build",
"start": "next start -p ${PORT:-3001}",
"lint": "next lint"
},
"dependencies": {
"@reduxjs/toolkit": "^2.0.1",
"axios": "^1.6.2",
"next": "14.0.4",
"qrcode.react": "^3.1.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-redux": "^9.0.4"
},
"devDependencies": {
"@types/node": "20.10.5",
"@types/react": "18.2.45",
"@types/react-dom": "18.2.18",
"autoprefixer": "^10.4.16",
"eslint": "8.56.0",
"eslint-config-next": "14.0.4",
"postcss": "^8.4.32",
"puppeteer": "^24.31.0",
"tailwindcss": "^3.3.6",
"typescript": "5.3.3"
}
}