Skip to content

AllahDitta-1/earning-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZCash Earning App

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.

What is included

  • 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

Tech stack

  • Frontend: React, Vite, React Router, Tailwind CSS, Lucide icons
  • Backend: PHP, Composer, firebase/php-jwt, vlucas/phpdotenv, Guzzle
  • Database: MySQL

Project structure

Earning app/
|-- my-app/              React frontend
|-- backend/             PHP API and database schema
|-- SETUP_GUIDE.md       Extended setup notes
|-- README.md            Repository overview

Main application areas

  • 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

API overview

The backend currently exposes routes for:

  • POST /api/auth/signup
  • POST /api/auth/login
  • GET /api/auth/verify
  • POST /api/funds/add
  • POST /api/funds/withdraw
  • GET /api/balance
  • GET /api/user/profile
  • PUT /api/user/profile
  • GET /api/transactions
  • POST /api/verify-transaction

Notes

  • backend/.env is 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.

Additional docs

  • Backend notes: backend/README.md
  • Setup guide: SETUP_GUIDE.md

About

Full-stack earning and wallet app built with React, Vite, PHP, and MySQL.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors