forked from claudiomolt/nostr-lightning-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
Β·41 lines (33 loc) Β· 842 Bytes
/
setup.sh
File metadata and controls
executable file
Β·41 lines (33 loc) Β· 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
set -e
echo "π§ Satsplit Setup Script"
echo ""
# Backend setup
echo "π¦ Installing backend dependencies..."
cd backend
npm install
echo ""
echo "π Setting up backend .env..."
if [ ! -f .env ]; then
cp .env.example .env
echo "β
Created backend/.env β please edit with your BACKEND_NSEC"
else
echo "β οΈ backend/.env already exists, skipping"
fi
cd ..
# Frontend setup
echo ""
echo "π¦ Installing frontend dependencies..."
cd frontend
npm install
cd ..
echo ""
echo "β
Setup complete!"
echo ""
echo "Next steps:"
echo "1. Edit backend/.env and set BACKEND_NSEC (generate new nsec if needed)"
echo "2. Start backend: cd backend && npm run dev"
echo "3. Start frontend: cd frontend && npm run dev"
echo "4. Open http://localhost:5173 and complete first-time setup"
echo ""
echo "π Bitcoin or Death"