This is a SAAS project for analyzing tweet sentiment and CSV stock data using a combination of a React front-end and a Flask back-end.
Before starting, ensure you have the following installed:
- Python 3.8+: Download Python
- Node.js and npm: Download Node.js
git clone https://github.com/yourusername/trading-bot.git
cd trading-bot- Download and install Python from the link above.
- Add Python to your PATH during installation.
- Verify Python installation:
python --version- Install Python using Homebrew:
brew install pythonDownload and install Node.js from the link above, which will include npm.
cd trading-bot
npm install
cd backend
##windows
python -m venv venv
.\\venv\\Scripts\\activate
##macos/linux
python3 -m venv venv
source venv/bin/activate
pip install flask flask-cors transformers spacy pandas numpy ta scipy
python -m spacy download en_core_web_sm
cd ../To start both the front-end and back-end servers, run:
npm run dev- Ensure your CSV file includes the following columns: Date, Open, High, Low, Close, Volume.
- If you encounter any issues, please check the terminal for error messages and verify your installation steps.