ZCash Earning App is a full-stack earning and wallet management project with a React frontend and a PHP backend. It includes authentication, balance tracking, transaction history, investment plans, referrals, and deposit or withdrawal flows designed for a local development setup.
- React 19 + Vite frontend in
my-app/ - PHP 8 backend API in
backend/ - JWT-based authentication
- Wallet, balance, and transaction endpoints
- Investment plan, goals, and referral views
- MySQL schema in
backend/database.sql
- Frontend: React, Vite, React Router, Tailwind CSS, Lucide icons
- Backend: PHP, Composer,
firebase/php-jwt,vlucas/phpdotenv, Guzzle - Database: MySQL
Earning app/
|-- my-app/ React frontend
|-- backend/ PHP API and database schema
|-- SETUP_GUIDE.md Extended setup notes
|-- README.md Repository overview
- Authentication: sign up, login, token verification
- Dashboard: balance cards, activity, earnings overview
- Wallet: add funds, withdraw, and review balance state
- Transactions: inspect previous account activity
- Profile and security: manage account details
- Investment plans, goals, and referrals
The backend currently exposes routes for:
POST /api/auth/signupPOST /api/auth/loginGET /api/auth/verifyPOST /api/funds/addPOST /api/funds/withdrawGET /api/balanceGET /api/user/profilePUT /api/user/profileGET /api/transactionsPOST /api/verify-transaction
backend/.envis ignored by git and is not committed.- The backend currently allows all CORS origins for development.
- Before deploying, replace the example secrets and restrict production CORS settings.
- Backend notes:
backend/README.md - Setup guide:
SETUP_GUIDE.md