Skip to content

vrathikshenoy/Stock_LSTM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

📊📈 Stock_LSTM

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.

🚀 Project Structure

Stock_LSTM/
├── back/       # Flask backend
│   ├── app.py
│   ├── requirements.txt
│   └── ...
├── stock/         # Next.js frontend
│   ├── package.json
│   ├── pnpm-lock.yaml
│   └── ...
└── README.md

🧰 Prerequisites

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

⚙️ Backend Setup (Flask)

  1. Navigate to the flask directory:

    cd back
  2. (Optional) Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install the required Python packages:

    pip install -r requirements.txt
  4. Run the Flask application:

    python app.py

    By default, the backend will be accessible at http://localhost:5000.


🎨 Frontend Setup (Next.js)

  1. Navigate to the jas directory:

    cd stock
  2. Install the frontend dependencies:

    pnpm install  # If pnpm is installed
    # or
    npm install   # If pnpm is not installed
  3. 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.


🔗 Connecting Frontend and Backend

Ensure both the Flask backend and Next.js frontend servers are running concurrently:

  • Flask backend: http://localhost:5000
  • Next.js frontend: http://localhost:3000

📂 Folder Overview

  • back/: Contains the Flask application, including routes, models, and configurations.
  • stock/: Contains the Next.js application, including pages, components, and styles.

🛑 Important Disclaimer: Read Before Use 🛑

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.

📄 License

This project is licensed under the MIT License.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors