RajArman/AlphaTrade ? reverse-engineered prompt
Reverse engineered prompt
Build me a full stack paper trading app where people can sign up, get a virtual cash balance, and buy and sell stocks without using real money.
I want a simple marketing site for signup and login, then a separate dashboard after login where users can see their wallet, holdings, order history, and overall portfolio performance. Trades should feel real, with live updating simulated prices, and when someone opens a buy or sell window it should prefill the current price. Make sure every trade is checked on the server, so users cannot spend more than they have or sell more shares than they own. Keep the wallet, holdings, and transaction history always in sync.
Please include JWT auth, password hashing, protected routes, and clear error handling for things like duplicate accounts or invalid trades. If it helps, use MongoDB for data storage and add Redis caching for the dashboard summary, but it should still work if Redis is unavailable. Also make the UI clean and modern, with charts and a good mobile friendly layout.