-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEXPOSE_LOCAL.txt
More file actions
96 lines (72 loc) · 4.82 KB
/
EXPOSE_LOCAL.txt
File metadata and controls
96 lines (72 loc) · 4.82 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
╔══════════════════════════════════════════════════════════════╗
║ EXPOSE LOCAL DEV SERVER ONLINE ║
╕══════════════════════════════════════════════════════════════╝
Test your app online while developing (no build needed)!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
METHOD 1: LocalTunnel (Easiest)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
STEP 1: Install LocalTunnel
────────────────────────────
• Open terminal in this folder
• Type: npm install -g localtunnel
• Wait for installation
STEP 2: Start your app
──────────────────────
• In terminal, type: npm run dev
• Wait for: "Local: http://localhost:3000"
• Keep this terminal open!
STEP 3: Expose to internet
──────────────────────────
• Open a NEW terminal window
• Type: lt --port 3000
• You'll get a link like: https://random-name.loca.lt
• Share this link - anyone can access your app!
STEP 4: Stop when done
──────────────────────
• Press Ctrl+C in both terminals
• Link stops working (temporary)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
METHOD 2: ngrok (More Features)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
STEP 1: Download ngrok
──────────────────────
• Go to: https://ngrok.com/download
• Download for Windows
• Extract the .exe file
• Put it somewhere easy (like Desktop)
STEP 2: Start your app
──────────────────────
• In terminal, type: npm run dev
• Wait for server to start
• Keep terminal open!
STEP 3: Expose to internet
──────────────────────────
• Open new terminal/command prompt
• Navigate to where ngrok.exe is
• Type: ngrok http 3000
• You'll see a link like: https://abc123.ngrok.io
• Share this link!
STEP 4: Stop when done
──────────────────────
• Press Ctrl+C in both windows
• Link stops working
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ADVANTAGES:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ No build needed
✅ See changes instantly (hot reload)
✅ Perfect for testing while developing
✅ Can test on phone/tablet
✅ Free
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DISADVANTAGES:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
❌ Link only works while your computer is on
❌ Link changes each time (unless paid ngrok)
❌ Temporary - stops when you close it
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 RECOMMENDATION:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
For permanent hosting: Use Netlify Drop (see HOST_ONLINE_NOW.txt)
For testing while developing: Use LocalTunnel or ngrok
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━