A modern React frontend for the TradeStocko trading platform, built with Vite and Tailwind CSS.
- 🚀 Modern React Architecture - Built with React 18 and modern hooks
- ⚡ Vite Build Tool - Lightning-fast development and build times
- 🎨 Tailwind CSS - Utility-first CSS framework for rapid UI development
- 🔐 Authentication - Secure login with your existing backend API
- 📱 Responsive Design - Mobile-first responsive design
- 🎯 TypeScript Ready - Easy to migrate to TypeScript if needed
- React 18 - Modern React with hooks
- Vite - Next-generation frontend tooling
- Tailwind CSS - Utility-first CSS framework
- React Router - Client-side routing
- Axios - HTTP client for API calls
- React Hot Toast - Beautiful toast notifications
- Node.js (version 16 or higher)
- npm or yarn
-
Install dependencies:
npm install
-
Start development server:
npm run dev
-
Open your browser: Navigate to
http://localhost:3000
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm run lint- Run ESLint
src/
├── components/ # Reusable UI components
├── pages/ # Page components
│ ├── Login.jsx # Login page
│ └── Dashboard.jsx # Dashboard page
├── services/ # API services
│ └── api.js # API client and endpoints
├── hooks/ # Custom React hooks
│ └── useAuth.js # Authentication hook
├── utils/ # Utility functions
│ └── deviceUtils.js # Device ID generation
├── assets/ # Static assets
├── App.jsx # Main App component
├── main.jsx # Application entry point
└── index.css # Global styles
The frontend integrates with your existing ASP.NET backend API at:
https://www.app.tradenstocko.com/api
POST /checklogin/- User authenticationGET /userprofile/- Get user profile dataGET /getledgerbalance/- Get account balanceGET /getallorders/- Get trading ordersGET /getmarkettime/- Get market timing data
For testing purposes, you can use these demo credentials:
- Username:
Testlogin - Password:
54321
- Modern, responsive design
- Form validation
- Loading states
- Error handling
- Demo credentials display
- User welcome section
- Account balance display
- Trading statistics
- Trading options (MCX, NSE, CDS)
- Logout functionality
- Secure login flow
- User session management
- Protected routes
- Automatic redirects
The foundation is set up for you to continue building:
- Trading Components - Add trading interface components
- Portfolio Management - Build portfolio tracking features
- Real-time Data - Integrate WebSocket for live market data
- Order Management - Add order placement and management
- Payment Integration - Integrate payment features
- Mobile Optimization - Further mobile enhancements
This frontend is designed to work seamlessly with your existing ASP.NET backend. The backend remains unchanged and serves as a pure API service.
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is part of the TradeStocko trading platform.