This application fetches stock data using yfinance, analyzes news sentiment using newspaper3k, and provides buy/sell/hold suggestions based on stock sentiment. The app is built with a FastAPI backend and a Next.js frontend.
- Real-time stock data fetching using
yfinance. - News sentiment analysis using
newspaper3kand external news sources vianewsapi. - Buy/Sell/Hold recommendations based on sentiment analysis.
- User authentication, stock search, and portfolio features.
-
Navigate to the
backenddirectory:cd backend -
Install required dependencies:
pip install -r requirements.txt
-
Run the FastAPI backend server:
uvicorn app.main:app --reload
The server will start at
http://127.0.0.1:8000.
-
Navigate to the
stock-analyzer-frontenddirectory:cd stock-analyzer-frontend -
Install required dependencies:
npm install
-
Run the frontend development server:
npm run dev
The frontend will be accessible at
http://localhost:3000.
If needed, install the following dependencies:
npm install react-loading-skeleton
npm install react-hot-toast