Skip to content

thonyblaze/trade

Repository files navigation

TradeMaster Pro - Static GitHub Pages Deployment

A professional trading platform with expert signals, education, and simulated trading capabilities. This static version runs entirely in the browser using local storage for data persistence.

🚀 Live Demo

Visit the live demo at: https://yourusername.github.io/trading-platform

✨ Features

  • $70 Registration with $40 Trading Credit - Simulated payment system
  • Real-time Stock Data Simulation - Live market data simulation
  • Expert Trading Signals - Professional analyst recommendations
  • Trading Education - Comprehensive courses and learning materials
  • Portfolio Management - Track trades and profits
  • Mobile Responsive - Works on all devices

🛠 Technologies Used

  • Frontend: React 18 + TypeScript
  • UI Framework: Shadcn/ui + Tailwind CSS
  • State Management: TanStack Query
  • Routing: Wouter
  • Build Tool: Vite
  • Deployment: GitHub Pages

📦 Quick Setup for GitHub Pages

1. Fork/Clone this Repository

git clone https://github.com/yourusername/trading-platform.git
cd trading-platform

2. Setup for Static Deployment

# Copy the static configuration
cp package.static.json package.json
cp vite.config.static.ts vite.config.ts

# Install dependencies
npm install

# Test locally
npm run dev

3. Deploy to GitHub Pages

Option A: Automatic Deployment (Recommended)

  1. Push your code to the main branch
  2. Enable GitHub Pages in your repository settings
  3. The GitHub Action will automatically build and deploy

Option B: Manual Deployment

# Build the project
npm run build

# Deploy using gh-pages
npm install -g gh-pages
npm run deploy

4. Configure GitHub Pages

  1. Go to your repository settings
  2. Navigate to "Pages" section
  3. Set source to "GitHub Actions"
  4. Your site will be available at https://yourusername.github.io/repository-name

🔧 Configuration

Custom Domain (Optional)

  1. Add your domain to the cname field in .github/workflows/deploy.yml
  2. Create a CNAME file in the public directory with your domain

Environment Variables

The static version doesn't require any API keys as it uses simulated data:

  • No Stripe keys needed (uses demo payment)
  • No Alpha Vantage API needed (uses simulated stock data)
  • All data stored in browser localStorage

🎯 Demo Features

User Registration & Payment

  • Creates account with simulated data
  • Demo payment process (no real money)
  • Instant account activation with $40 credit

Trading Simulation

  • Real-time price movements (simulated)
  • Buy/sell functionality with virtual money
  • Portfolio tracking and profit calculation

Expert Signals

  • Professional analyst recommendations
  • Real market analysis and insights
  • Multiple signal types (buy/sell)

Education System

  • Comprehensive trading courses
  • Beginner to advanced levels
  • Progress tracking

📱 Mobile Support

The platform is fully responsive and works on:

  • Desktop computers
  • Tablets
  • Mobile phones
  • All modern browsers

🔐 Data Storage

All user data is stored locally in the browser:

  • User accounts and preferences
  • Trading history and positions
  • Course progress
  • No server required

🆘 Troubleshooting

Build Issues

# Clear cache and reinstall
rm -rf node_modules package-lock.json
npm install

Deployment Issues

# Check GitHub Pages settings
# Ensure GitHub Actions are enabled
# Verify the workflow file is in .github/workflows/

Local Development Issues

# Run with verbose logging
npm run dev -- --debug

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

📞 Support

For issues and questions:

  • Create an issue on GitHub
  • Check the troubleshooting section
  • Review the documentation

Note: This is a demonstration platform. All trading is simulated and no real money is involved.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages