-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.sh
More file actions
67 lines (57 loc) · 1.69 KB
/
Copy pathsetup.sh
File metadata and controls
67 lines (57 loc) · 1.69 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
# Setup script for Proptify MVP
# This script initializes the project for development
# Uses npm only (no pnpm)
set -e
echo "🚀 Proptify MVP Setup"
echo ""
# Check prerequisites
echo "📋 Checking prerequisites..."
if ! command -v node &> /dev/null; then
echo "❌ Node.js not found. Install from https://nodejs.org"
exit 1
fi
if ! command -v npm &> /dev/null; then
echo "❌ npm not found. Install from https://nodejs.org"
exit 1
fi
if ! command -v psql &> /dev/null; then
echo "⚠️ PostgreSQL not found. Install from https://www.postgresql.org/download"
echo " macOS: brew install postgresql@15"
echo " Ubuntu: sudo apt-get install postgresql"
exit 1
fi
echo "✅ Prerequisites OK"
echo ""
# Install dependencies
echo "📦 Installing dependencies..."
npm install
npm install --prefix backend
npm install --prefix frontend
echo ""
echo "✅ Setup complete!"
echo ""
echo "📝 Next steps:"
echo ""
echo "1️⃣ Set up database:"
echo " psql postgres -c \"CREATE USER proptify WITH PASSWORD 'proptify';\""
echo " psql postgres -c \"CREATE DATABASE proptify OWNER proptify;\""
echo ""
echo "2️⃣ Generate Stellar testnet keypair:"
echo " soroban keys generate admin --network testnet"
echo " soroban keys fund admin --network testnet"
echo ""
echo "3️⃣ Configure backend/.env:"
echo " cd backend"
echo " cp .env.example .env"
echo " # Add ADMIN_SECRET_KEY and ADMIN_PUBLIC_KEY from step 2"
echo ""
echo "4️⃣ Start backend:"
echo " cd backend && npm run dev"
echo ""
echo "5️⃣ Start frontend (in new terminal):"
echo " cd frontend && npm run dev"
echo ""
echo "6️⃣ Open app at http://localhost:3000"
echo ""
echo "🎉 Happy coding!"