A full-stack wishlist application built with React Native + Expo (TypeScript) for the client and Node.js + Express (TypeScript) for the server. Users can add product URLs, preview items, and manage their wishlist with a beautiful, professional UI.
- URL Preview: Extract product information from any e-commerce URL
- Wishlist Management: Add, view, and remove items with long-press gestures
- Progress Tracking: Visual progress bar with goal tracking
- Deduplication: Prevent duplicate items with URL normalization
- Persistence: SQLite database with schema migration support
- Deep Linking: Support for
centscape://add?url=scheme - Responsive Design: Beautiful UI with light green theme
- Accessibility: Full accessibility support with proper labels
- Framework: React Native 0.76.3 with Expo SDK 53
- Language: TypeScript
- Navigation: React Navigation (Stack Navigator)
- State Management: Zustand
- Database: Expo SQLite
- UI Components: Custom components with professional design
- Performance: FlashList for virtualized lists
- Runtime: Node.js 18+
- Framework: Express.js with TypeScript
- HTTP Client: Axios for URL fetching
- HTML Parsing: Cheerio for content extraction
- Security: Helmet, CORS, Rate limiting, SSRF protection
- Database: SQLite with schema migration
- Node.js: >= 18.0.0
- npm: >= 8.0.0
- Expo CLI: Latest version
- Expo Go App: For testing on mobile devices
- Git: For version control
centscape/
βββ app/ # React Native + Expo client
β βββ src/
β β βββ components/ # Reusable UI components
β β βββ screens/ # App screens
β β βββ services/ # API and database services
β β βββ store/ # Zustand state management
β β βββ theme/ # Design system and theming
β β βββ types/ # TypeScript type definitions
β β βββ context/ # React Context providers
β βββ assets/ # Images and static assets
β βββ package.json
βββ server/ # Node.js + Express backend
β βββ src/
β β βββ controllers/ # Request handlers
β β βββ services/ # Business logic
β β βββ middleware/ # Express middleware
β β βββ utils/ # Utility functions
β β βββ types/ # TypeScript types
β βββ package.json
βββ schemas/ # Database schemas
βββ screenshots/ # App screenshots
βββ package.json # Root workspace config
git clone <repository-url>
cd centscape# Install all dependencies (root, server, and app)
npm run install:all
# Or install individually:
npm install
cd server && npm install
cd ../app && npm installCreate server/.env file:
PORT=3001
NODE_ENV=developmentThe app automatically detects your computer's IP address. If you need to change it manually, update app/src/services/api.ts:
const API_BASE_URL = __DEV__
? 'http://YOUR_COMPUTER_IP:3001' // Replace with your IP
: 'https://your-production-api.com';npm run dev# Terminal 1 - Start server
npm run dev:server
# Terminal 2 - Start mobile app
npm run dev:app- Install Expo Go on your mobile device
- Ensure both devices are on the same WiFi network
- Scan the QR code from the Expo development server
- Test the app by adding URLs to your wishlist
Important: The mobile app needs to connect to your computer's IP address. Follow these steps:
-
Find your computer's IP address:
# macOS/Linux ifconfig | grep "inet " | grep -v 127.0.0.1 # Windows ipconfig
-
Update the API configuration in
app/src/services/api.ts:const API_BASE_URL = __DEV__ ? 'http://YOUR_IP_ADDRESS:3001' : 'https://your-production-api.com';
-
Update CORS configuration in
server/src/index.ts:origin: ['http://localhost:3000', 'http://localhost:19006', 'http://YOUR_IP_ADDRESS:3001']
The app uses SQLite with automatic schema migration:
- Schema Version: 2 (supports normalized URLs for deduplication)
- Location:
app/data/wishlist.db - Migration: Automatic from v1 to v2
cd server
npm run test
npm run test:coveragecd app
npm run typechecknpm run verify- Open the app and tap the floating action button
- Paste a product URL from any e-commerce site
- Tap "Preview" to see extracted product information
- Tap "Add to Wishlist" to save the item
- View items: Scroll through your wishlist on the home screen
- Remove items: Long press any item and confirm deletion
- Progress tracking: View your savings progress with the interactive card
The app supports deep linking for quick item addition:
centscape://add?url=https://example.com/product
- SSRF Protection: Blocks requests to private/loopback IPs
- Rate Limiting: 10 requests per minute per IP
- Input Validation: URL validation and sanitization
- Content Security: Helmet.js for security headers
- CORS Protection: Configured for development and production
- Input Sanitization: URL validation before API calls
- Error Handling: Graceful error handling and user feedback
- Data Validation: TypeScript for type safety
-
SQLite vs PostgreSQL/MongoDB
- Pros: Simple setup, no external dependencies, works offline
- Cons: Limited concurrent users, no built-in replication
- Risk: Not suitable for high-scale production
-
Expo vs React Native CLI
- Pros: Faster development, easier setup, managed workflow
- Cons: Limited native module access, larger bundle size
- Risk: May need ejection for complex native features
-
URL Preview vs Direct Integration
- Pros: Works with any website, no API keys needed
- Cons: Relies on website structure, may break with site changes
- Risk: Some sites block automated requests
-
Client-side State vs Server-side State
- Pros: Fast UI updates, works offline
- Cons: No cross-device sync, data loss if app is uninstalled
- Risk: Data inconsistency across devices
-
URL Preview Reliability
- Risk: Websites may change structure or block requests
- Mitigation: Multiple fallback extraction methods, error handling
-
Network Connectivity
- Risk: Mobile app can't connect to server
- Mitigation: Clear error messages, IP configuration guide
-
Data Persistence
- Risk: SQLite database corruption or loss
- Mitigation: Schema migration, backup strategies
-
Performance
- Risk: Large wishlists may cause performance issues
- Mitigation: Virtualized lists, pagination, optimization
This project was developed with assistance from AI tools. Here's what was used and why:
-
Code Generation & Refactoring
- Tool: Claude Sonnet 4
- Purpose: Initial project structure, component creation, API integration
- Prompts Used:
- "Create a full-stack wishlist app with React Native and Node.js"
- "Implement URL preview functionality with web scraping"
- "Design a professional UI with light green theme"
- "Add proper error handling and loading states"
-
Problem Solving
- Tool: Claude Sonnet 4
- Purpose: Debugging network issues, dependency conflicts, styling problems
- Prompts Used:
- "Fix network error when connecting mobile app to server"
- "Resolve Expo SDK compatibility issues"
- "Implement proper tooltip positioning"
- "Add long-press gesture for item deletion"
-
Documentation
- Tool: Claude Sonnet 4
- Purpose: Creating comprehensive README, code comments, setup instructions
- Prompts Used:
- "Write detailed setup instructions for the project"
- "Document engineering tradeoffs and risks"
- "Create user-friendly installation guide"
- Rapid Prototyping: Quick iteration on features and UI
- Best Practices: Ensuring code follows modern patterns and conventions
- Problem Solving: Efficient debugging of complex issues
- Documentation: Comprehensive documentation for maintainability
All AI-generated code was:
- Reviewed for correctness and security
- Tested thoroughly before implementation
- Customized to meet specific requirements
- Optimized for performance and user experience
-
Server Deployment
cd server npm run build npm start -
App Deployment
cd app expo build:android # or expo build:ios
Set these in production:
NODE_ENV=production
PORT=3001
CORS_ORIGIN=https://yourdomain.com- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
-
Network Error on Mobile
- Ensure both devices are on same WiFi
- Check IP address configuration
- Verify server is running
-
Expo Build Issues
- Clear cache:
expo r -c - Update Expo CLI:
npm install -g @expo/cli
- Clear cache:
-
Dependency Conflicts
- Use
npm install --legacy-peer-depsif needed - Clear node_modules and reinstall
- Use
-
Database Issues
- Delete
app/data/wishlist.dbto reset - Check schema migration logs
- Delete
- Check the troubleshooting section above
- Review error logs in console
- Ensure all prerequisites are met
- Verify network connectivity
Built with β€οΈ using React Native, Expo, Node.js, and AI assistance





