Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛍️ Shop With Faisu - Mobile Shopping App

A complete mobile shopping application with both Progressive Web App (PWA) and React Native versions.


🚀 QUICK START

Both Apps Are Currently Running!

📱 PWA Web App (Installable - Like z.ai)

How to install on your phone:

  1. Open http://192.168.1.7:3000 on your mobile browser
  2. Tap "Add to Home Screen" when prompted
  3. The app will install like a native app!

📱 React Native App (Expo)

  • Status: ✅ Running with Expo
  • Access: Scan the QR code in your terminal with Expo Go app

📖 DETAILED GUIDES

🌟 For PWA Installation & Sharing

See: PWA-INSTALLATION-GUIDE.md

This guide includes:

  • How to install the app on your phone
  • How to share with anyone (like z.ai does)
  • How to deploy permanently for free
  • Troubleshooting tips

🎯 WHAT YOU ASKED FOR

You wanted the same experience as z.ai where: ✅ You open a localhost link on your phone
✅ It shows a notification to download the app
✅ Anyone with the link can download and use it
✅ It works like a real mobile app

This is now working with the PWA version!


💻 PROJECT STRUCTURE

mobile/
├── mobile-app/           # React Native + Expo app
├── src/                  # Next.js PWA source code
├── public/
│   ├── manifest.json     # PWA manifest
│   └── icons/            # App icons (all sizes)
├── package.json          # Next.js dependencies
└── README.md             # This file

🔧 COMMANDS

Start PWA Web App

npm run dev

Runs on: http://localhost:3000

Start React Native App

cd mobile-app
npm start

Scan QR code with Expo Go app

Share PWA Globally (Free)

# Option 1: ngrok
ngrok http 3000

# Option 2: Cloudflare Tunnel
cloudflared tunnel --url http://localhost:3000

# Option 3: LocalTunnel
npx localtunnel --port 3000

Deploy PWA Permanently

# Vercel (Recommended)
npm install -g vercel
vercel

# You'll get a permanent URL like:
# https://shop-faisu.vercel.app

🎨 FEATURES

PWA Features (Next.js)

  • ✅ Installable on any device
  • ✅ Works offline
  • ✅ Fast loading
  • ✅ App-like experience
  • ✅ No app store needed
  • ✅ Shareable via link

React Native Features (Expo)

  • ✅ Native performance
  • ✅ Cross-platform (iOS/Android)
  • ✅ Rich mobile features
  • ✅ Smooth animations
  • ✅ Native components

🌐 DEPLOYMENT OPTIONS

Free Hosting Services

Service Best For Free Tier
Vercel Next.js PWA ✅ Unlimited
Netlify Static PWA ✅ 100GB/month
Railway Full-stack ✅ $5 credit
Render Web services ✅ 750 hours

Temporary Sharing

Service Duration Setup
ngrok Permanent* Account needed
Cloudflare Session-based No account
LocalTunnel Session-based No account

*With free account, tunnel stays active


📱 CURRENT SETUP

What's Running Now

  1. Next.js PWA - Port 3000

    • Accessible on same WiFi network
    • Can be installed on mobile devices
    • Full PWA capabilities
  2. React Native Expo - Port 8081

    • Requires Expo Go app
    • Development mode
    • Hot reload enabled

🎯 RECOMMENDATION

For your use case (sharing like z.ai):

Use the PWA (Next.js) version because:

  • ✅ Share via simple link
  • ✅ No app store needed
  • ✅ Works on any device
  • ✅ Instant updates
  • ✅ Easier to distribute

Steps:

  1. Deploy to Vercel (free, 2 minutes)
  2. Share the Vercel URL with anyone
  3. They can install it as an app on their phone
  4. Done!

🆘 TROUBLESHOOTING

Can't access from phone?

No install prompt?

  • Use HTTPS (via ngrok/tunnel)
  • Try incognito mode
  • Clear browser cache

Want public access?

  • Use ngrok/cloudflare tunnel for temporary
  • Deploy to Vercel for permanent

📞 NEXT STEPS

Choose what you want to do:

  1. Test locally - Already running! Open http://192.168.1.7:3000 on your phone

  2. Share temporarily - Use ngrok: ngrok http 3000

  3. Deploy permanently - Use Vercel: vercel

  4. Customize PWA - Edit public/manifest.json

  5. Build native app - Use Expo EAS Build


📚 LEARN MORE


Made with ❤️ by Faisu

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages