A stock trading simulation platform with a fake market engine, live price fluctuations, and interactive portfolio management.
- β‘ Real-time market engine generating price fluctuations with OHLC data
- π Interactive candlestick charts using
lightweight-charts - πΌ Portfolio management with stock purchase and live holdings tracking
- ποΈ Prisma ORM with Express backend for users, holdings, transactions, and history
- π¨ Responsive UI built with Tailwind CSS for smooth trading experience
- Frontend: React.js, Tailwind CSS
- Backend: Node.js, Express.js, Prisma
- Database: PostgreSQL
- Charts: lightweight-charts
(Add screenshots or GIFs here, e.g. trading dashboard, charts, portfolio page)
git clone https://github.com/Srinu346/TradeX.git
cd TradeX
npm install
3οΈβ£ Setup environment variables
Create a .env file in the root directory:
DATABASE_URL=postgresql://user:password@localhost:5432/tradex
PORT=5000
4οΈβ£ Run database migrations
npx prisma migrate dev
5οΈβ£ Start the development server
npm run dev
βββ client/ # Frontend (React + Tailwind CSS) βββ server/ # Backend (Node.js + Express + Prisma) βββ prisma/ # Prisma schema & migrations βββ package.json βββ README.md
Add stock selling feature
Implement transaction history UI
Introduce leaderboard & gamification
Support multiple markets/sectors
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
Distributed under the MIT License. See LICENSE for more information.