A comprehensive Progressive Web Application (PWA) for the USV Token ecosystem, featuring blockchain-based rewards, NFT authentication, QR code claiming, and vape store partnerships.
- Solana Wallet Support - Connect Phantom and other Solana wallets
- USV Token Contract -
8bLH2ZzpUxvYtssoXSKk5zJPm2Gj1rMZuGmnMfkoRPh - Real-time Price Charts - Live Solana/USV pricing from CoinGecko API
- Secure Transactions - JWT-based authentication with bcrypt hashing
- Offline Support - Service worker for offline functionality
- Installable - Works like a native app on iOS and Android
- Responsive Design - Optimized for phones, tablets, and desktops
- Dark/Light Mode - Full theme switching with localStorage persistence
- Claim Tokens - Scan QR codes to earn USV tokens instantly
- Real Blockchain Transfers - Direct SPL token transfers to wallet
- Webhook Integration - Real-time notifications to external systems
- Product Verification - Authenticate PURE5 vape products
- Interactive Map - Leaflet-based mapping with OpenStreetMap
- Partner Directory - Find nearby USV partner vape stores
- Distance Calculation - Real-time distance from user location
- Contact Integration - Call, email, or get directions to stores
- OpenAI Integration - Powered by GPT-4
- Product Knowledge - Trained on PURE5 Hash Resin 25-strain catalog
- Floating Widget - Mobile-responsive chat interface
- Smart Responses - Context-aware product recommendations
- Multi-Language Support - English, Spanish, and French
- Automatic Detection - Browser language preference detection
- Complete UI Translation - All app pages and components translated
- Wallet Management - View USV token balance and transaction history
- Portfolio Tracking - Monitor NFT collections
- Earnings History - See all earned tokens and rewards
- Settings & Security - Passcode protection and preferences
- React 18 with TypeScript
- Vite - Lightning-fast build tool
- Tailwind CSS + shadcn/ui - Beautiful, accessible components
- Framer Motion - Smooth animations
- Wouter - Lightweight routing
- TanStack Query - Server state management
- Leaflet - Interactive maps
- Express.js - RESTful API server
- PostgreSQL - Database with Neon
- Drizzle ORM - Type-safe database toolkit
- JWT - Secure authentication
- bcrypt - Password hashing
- OpenAI API - AI chatbot
- Solana Web3.js - Blockchain interactions
- SPL Token - Token operations
- Anchor Framework - Smart contracts
- Metaplex - NFT utilities
- Node.js 18+
- npm or yarn
- PostgreSQL database
- API keys for:
- OpenAI (chatbot)
- Helius (Solana RPC)
- Replit Secrets (credentials)
# Clone the repository
git clone https://github.com/yourusername/usv-app.git
cd usv-app
# Install dependencies
npm install
# Set up environment variables
cp .env.example .env.local
# Edit .env.local with your API keys
# Run development server
npm run devVisit http://localhost:5000 in your browser.
npm run build
npm run startThe app is configured to run on Replit with automatic deployments.
See HETZNER_DEPLOYMENT.md for complete deployment guide to self-hosted server.
Dockerfile configuration for containerized deployment.
usv-app/
βββ client/
β βββ src/
β β βββ pages/ # React pages
β β βββ components/ # Reusable components
β β βββ hooks/ # Custom React hooks
β β βββ lib/ # Utilities and API client
β β βββ App.tsx # Main app component
β βββ public/ # Static assets
β βββ index.html # HTML entry point
βββ server/
β βββ routes.ts # API endpoints
β βββ storage.ts # Database interface
β βββ vite.ts # Vite integration
β βββ index.ts # Express server
βββ shared/
β βββ schema.ts # Database schemas
βββ package.json # Dependencies
βββ README.md # This file
POST /api/auth/login- User loginPOST /api/auth/register- Create accountPOST /api/auth/logout- Sign out
POST /api/qr/claim- Claim tokens via QR code
GET /api/stores- List all partner storesGET /api/stores/:id- Get store details
GET /api/wallet/balance- User's USV balanceGET /api/wallet/transactions- Transaction history
POST /api/webhooks- Register webhookGET /api/webhooks- List webhooksDELETE /api/webhooks/:id- Remove webhook
# Database
DATABASE_URL=postgresql://user:pass@host/dbname
# Blockchain
SOLANA_NETWORK=mainnet-beta
USV_TOKEN_MINT_ADDRESS=8bLH2ZzpUxvYtssoXSKk5zJPm2Gj1rMZuGmnMfkoRPh
COMPANY_WALLET_PRIVATE_KEY=your_private_key
# APIs
OPENAI_API_KEY=sk-...
HELIUS_API_KEY=your_helius_key
VITE_SOLANA_RPC_URL=https://api.mainnet-beta.solana.com- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open a Pull Request
- β JWT token-based authentication
- β Password hashing with bcrypt
- β Environment variables for secrets (never hardcoded)
- β CORS protection
- β Input validation with Zod
- β Secure session management
- Enhanced analytics dashboard
- Additional vape store partnerships
- Mobile app versions (iOS/Android)
- Advanced NFT features
- Referral program system
- Multi-chain support
For issues and questions:
- Open an issue on GitHub
- Contact: support@usvtoken.com
MIT License - See LICENSE file for details
- Solana ecosystem for blockchain infrastructure
- OpenAI for AI capabilities
- PURE5 for vape product partnerships
- Replit for development platform