Stocksim is a full-stack web application that allows users to practice stock trading in a simulated, real-time environment. It provides a safe and realistic platform for users to learn about the stock market, test trading strategies, and compete with other users without any financial risk.
Live Application: stocksim-dusky.vercel.app
- User Authentication: Secure user registration and login system.
- Real-Time Stock Data: Fetches and displays up-to-date stock prices and market data.
- Portfolio Management: Users get a starting virtual balance to buy and sell stocks, and can track their portfolio's performance over time.
- Stock Trading: A realistic trading interface to buy and sell stocks based on live market data.
- Financial News: Integrated news feed to help users make informed trading decisions.
- Leaderboard: A competitive leaderboard that ranks users based on their portfolio performance.
- Community Features: A community shop where users can spend their virtual earnings.
- Educational Content: Articles and resources to help users learn about stock trading.
- Framework: React (with Vite)
- Routing: React Router
- API Communication: Axios
- Styling: CSS (with Framer Motion for animations)
- Charting: Recharts & Lightweight Charts
- Framework: Flask
- Server: Gunicorn
- Authentication: JWT (JSON Web Tokens)
- Database: MariaDB (MySQL compatible)
- Frontend: Deployed on Vercel. The live version is automatically updated on every push to the
mainbranch. - Backend: Deployed on Railway.
- Database: Hosted on Railway.
To run this project on your local machine, follow these steps:
git clone https://github.com/Addy-Da-Baddy/Stocksim.git
cd Stocksim- Navigate to the
Backenddirectory. - Create a virtual environment and install the required Python packages.
- Create a
.envfile and add the necessary environment variables (DATABASE_URL,SECRET_KEY,JWT_SECRET_KEY,NEWS_API_KEY). - Run the Flask application.
- Navigate to the
Frontenddirectory. - Install the required Node.js packages.
- Create a
.envfile withVITE_API_URLpointing to your local backend. - Start the Vite development server.
- Addy - Addy-Da-Baddy