A full-stack application for automated financial analysis. It parses market news/signals from text files, determines affected S&P 500 stocks, fetches market data, performs sentiment analysis, and generates an AI summary using the Gemini pipeline.
app/- The FastAPI Python backendfrontend/- The Next.js React frontend
- Navigate to the project root:
cd HackAI - Create and activate a virtual environment, then install dependencies:
pip install -r requirements.txt
- Copy
.env.exampleto.envand fill in your API keys:GEMINI_API_KEYMASSIVE_API_KEYALPHA_VANTAGE_API_KEY
- Run the server:
The backend will be available at http://localhost:8000.
uvicorn app.main:app --reload
- Navigate to the frontend directory:
cd HackAI/frontend - Install Node dependencies:
npm install
- Create a
.env.localfile to specify the API URL (optional if running backend locally at port 8000):NEXT_PUBLIC_API_URL=http://localhost:8000 - Run the development server:
The frontend will be available at http://localhost:3000.
npm run dev
- Frontend: Designed for instant deployment on Vercel.
- Backend: Can be easily hosted on Railway, Render, or any standard Python hosting service. Update the frontend's
NEXT_PUBLIC_API_URLto point to the production backend URL when deploying.