Full-stack Web3 loyalty gaming platform with blockchain integration for SLERF (Base) and CHONK9K (Solana) tokens.
# Database
DATABASE_URL=postgresql://username:password@host:port/database
# Session Security
SESSION_SECRET=your-secure-session-secret-key
# Optional: Blockchain API Keys
SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
BASE_RPC_URL=https://mainnet.base.org# Install dependencies
npm install
# Build production assets
npm run build
# Start production server
npm start- Frontend:
dist/public/(static assets) - Backend:
dist/index.js(bundled server) - Database: PostgreSQL schema via Drizzle ORM
- Port: 5000 (configurable via PORT env var)
- Static Files: Served from
dist/public - API Routes:
/api/* - Database: PostgreSQL with connection pooling
- Solana wallet connection (Phantom, Solflare)
- Base chain wallet connection (MetaMask, WalletConnect)
- Real-time token balance tracking
- Blockchain transaction simulation
- Daily task completion system
- SLERF mining game with click mechanics
- Price prediction game
- Trivia rewards system
- Loyalty scoring algorithm
- NFT marketplace with collection management
- Token staking pools (SLERF/CHONK9K)
- Trading charts with real-time data
- Professional staking tiers
- Express session management
- PostgreSQL session store
- CORS configuration
- Input validation with Zod schemas
-
Database Setup
- Run
npm run db:pushto initialize schema - Verify database connection
- Check table creation
- Run
-
Web3 Services
- Test Solana RPC connectivity
- Verify Base chain integration
- Check token balance endpoints
-
Frontend Assets
- Verify static file serving
- Check logo and asset loading
- Test responsive design
-
API Endpoints
- Test authentication flow
- Verify task completion
- Check reward claiming
The project is configured to work with any domain. Key considerations:
- CORS: Configure for boomchainlab.com origin
- Session Cookies: Set secure domain settings
- Asset URLs: Use relative paths (already configured)
- API Base URL: Auto-detects current domain
- Frontend: Vite production build with asset optimization
- Backend: esbuild bundling for minimal size
- Database: Connection pooling with pgPool
- Static Assets: Efficient serving via Express
- Express request logging
- Database query monitoring
- Web3 service status checks
- User activity tracking