Stock_LSTM is a full-stack web application combining a Flask backend with a Next.js frontend. The project is organized into two main directories:
back/– Contains the Flask backend application.stock/– Contains the Next.js frontend application.
Stock_LSTM/
├── back/ # Flask backend
│ ├── app.py
│ ├── requirements.txt
│ └── ...
├── stock/ # Next.js frontend
│ ├── package.json
│ ├── pnpm-lock.yaml
│ └── ...
└── README.md
Ensure you have the following installed:
- Python 3.12+ and pip
- Node.js 15 and npm
- pnpm (optional, for faster frontend dependency management)
To install pnpm globally:
npm install -g pnpm-
Navigate to the
flaskdirectory:cd back -
(Optional) Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install the required Python packages:
pip install -r requirements.txt
-
Run the Flask application:
python app.py
By default, the backend will be accessible at
http://localhost:5000.
-
Navigate to the
jasdirectory:cd stock -
Install the frontend dependencies:
pnpm install # If pnpm is installed # or npm install # If pnpm is not installed
-
Start the Next.js development server:
pnpm dev # If using pnpm # or npm run dev # If using npm
The frontend will be accessible at
http://localhost:3000.
Ensure both the Flask backend and Next.js frontend servers are running concurrently:
- Flask backend:
http://localhost:5000 - Next.js frontend:
http://localhost:3000
back/: Contains the Flask application, including routes, models, and configurations.stock/: Contains the Next.js application, including pages, components, and styles.
UNDERSTAND THIS CLEARLY: THIS PROJECT IS A SIMULATION AND SHOULD NOT BE USED FOR REAL-MONEY TRADING.
The code and any information generated by this project are purely for educational exploration and experimentation. They are NOT financial advice, and their accuracy in predicting real market outcomes is NOT guaranteed.
Trading stocks involves substantial risk. You can lose significant capital. Do not use this project as a basis for your investment decisions.
By using this project, you acknowledge that you understand and agree to this warning.
This project is licensed under the MIT License.