A modern, full-stack web application for deploying and managing WhatsApp bots with an intuitive dashboard, coin-based economy, and referral system.
- One-Click Bot Deployment: Deploy WhatsApp bots instantly with customizable configurations
- Coin Economy System: Virtual currency for resource management and bot deployment costs
- Referral Program: Earn coins by referring new users to the platform
- Real-time Dashboard: Monitor deployments, transactions, and referral analytics
- Google OAuth Authentication: Secure login with Google accounts
- Dark Mode Support: System preference detection with manual toggle
- Mobile-First Design: Fully responsive interface optimized for all devices
- Modern UI: Clean, professional interface built with shadcn/ui components
- Email Verification: Secure account verification with resend functionality
- Deployment Tracking: Monitor bot status, uptime, and performance
- Transaction History: Complete audit trail of all coin transactions
- Referral Analytics: Track referral performance and earnings
- User Dashboard: Comprehensive overview of account status and activities
- React 18 - Modern React with hooks and concurrent features
- TypeScript - Type-safe development experience
- Tailwind CSS - Utility-first CSS framework
- shadcn/ui - High-quality, accessible UI components
- Wouter - Lightweight client-side routing
- TanStack Query - Powerful data fetching and state management
- React Hook Form - Performant form handling with Zod validation
- Node.js - JavaScript runtime environment
- Express.js - Fast, unopinionated web framework
- TypeScript - Type safety across the entire stack
- MongoDB - Document database for flexible data storage
- Passport.js - Authentication middleware with Google OAuth
- Express Sessions - Secure session management
- Vite - Next-generation frontend build tool
- ESLint - Code linting for consistency
- Prettier - Code formatting
- Drizzle ORM - Type-safe database toolkit
- Node.js (v18 or higher)
- MongoDB database
- Google OAuth credentials
-
Clone the repository
git clone https://github.com/your-username/subzero-md-platform.git cd subzero-md-platform -
Install dependencies
npm install
-
Environment setup
cp .env.example .env
Edit
.envwith your configuration:DATABASE_URL=mongodb://localhost:27017/subzero-md GOOGLE_CLIENT_ID=your_google_client_id GOOGLE_CLIENT_SECRET=your_google_client_secret SESSION_SECRET=your_secure_session_secret
-
Start the development server
npm run dev
-
Open your browser Navigate to
http://localhost:5000
βββ client/ # Frontend React application
β βββ src/
β β βββ components/ # Reusable UI components
β β βββ pages/ # Route components
β β βββ hooks/ # Custom React hooks
β β βββ lib/ # Utility functions and config
β β βββ styles/ # Global styles and Tailwind config
βββ server/ # Backend Express application
β βββ routes/ # API route handlers
β βββ middleware/ # Express middleware
β βββ models/ # Database models
β βββ utils/ # Server utilities
βββ shared/ # Shared types and schemas
βββ docs/ # Documentation files
-
Create a Google Cloud Project
- Go to Google Cloud Console
- Create a new project or select existing one
-
Enable Google+ API
- Navigate to APIs & Services > Library
- Search for and enable "Google+ API"
-
Create OAuth Credentials
- Go to APIs & Services > Credentials
- Create OAuth 2.0 Client ID
- Add authorized domains:
https://your-domain.com - Add redirect URI:
https://your-domain.com/api/auth/google/callback
-
Update Environment Variables
GOOGLE_CLIENT_ID=your_client_id_here GOOGLE_CLIENT_SECRET=your_client_secret_here
The application uses MongoDB for data persistence. Update your .env file:
DATABASE_URL=mongodb://localhost:27017/subzero-md
# or for MongoDB Atlas
DATABASE_URL=mongodb+srv://username:password@cluster.mongodb.net/subzero-md-
Connect Repository
- Link your GitHub repository to Render
-
Configure Environment Variables
- Set all required environment variables in Render dashboard
- Important: Set the following URLs for production:
RENDER_EXTERNAL_URL=https://your-app.onrender.com FRONTEND_URL=https://your-app.onrender.com BACKEND_URL=https://your-app.onrender.com
- The
RENDER_EXTERNAL_URLis crucial for correct email verification links
-
Deploy
- Render will automatically build and deploy your application
The application is compatible with:
- Vercel - Frontend deployment with serverless functions
- Railway - Full-stack deployment with automatic SSL
- DigitalOcean App Platform - Containerized deployment
- Heroku - Traditional PaaS deployment
GET /api/auth/user- Get current userGET /api/auth/google- Initialize Google OAuthGET /api/auth/google/callback- Google OAuth callbackPOST /api/auth/logout- Sign out user
GET /api/users/profile- Get user profilePUT /api/users/profile- Update user profileGET /api/users/balance- Get coin balance
GET /api/deployments- List user deploymentsPOST /api/deployments- Create new deploymentPUT /api/deployments/:id- Update deploymentDELETE /api/deployments/:id- Delete deployment
GET /api/transactions- Get transaction historyPOST /api/transactions- Create transaction
GET /api/referrals- Get referral dataPOST /api/referrals/apply- Apply referral code
We welcome contributions! Please follow these steps:
- Fork the repository
- Create a feature branch
git checkout -b feature/amazing-feature
- Make your changes
- Commit your changes
git commit -m 'Add amazing feature' - Push to your branch
git push origin feature/amazing-feature
- Open a Pull Request
- Follow TypeScript best practices
- Use meaningful commit messages
- Add tests for new features
- Update documentation as needed
- Ensure mobile responsiveness
- Follow the existing code style
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues or have questions:
- Check the documentation - Most common issues are covered here
- Search existing issues - Your question might already be answered
- Create a new issue - Provide detailed information about your problem
- Join our community - Connect with other users and contributors
- Bot template marketplace
- Advanced analytics dashboard
- Multi-language support
- Mobile app (React Native)
- API rate limiting and quotas
- Advanced user roles and permissions
- β Dark mode implementation with system preference detection
- β Mobile-responsive design improvements
- β Email verification system with resend functionality
- β Enhanced navigation and user experience
- β Theme toggle component integration
- shadcn/ui - For the beautiful component library
- Radix UI - For accessible headless components
- Tailwind CSS - For the utility-first CSS framework
- React - For the component-based architecture
- Express.js - For the robust server framework
Made with β€οΈ by the SUBZERO-MD team
- Project Repository: GitHub
- Documentation: Wiki
- Issues: Bug Reports