AI-powered stock analytics platform with a Flask backend, PostgreSQL datastore, React dashboard, and grounded AI assistant.
+---------------------------+ +---------------------------+ +------------------------+
| Presentation Tier | <----> | Application Tier | <----> | Data Tier |
| React + TypeScript (Vite) | | Flask REST + Services | | PostgreSQL |
| - Dashboard | | - Ingestion orchestration | | - tickers |
| - Comparison charts | | - Query/aggregation | | - price_history |
| - AI chat panel | | - AI grounding + OpenAI | | - fundamentals |
+---------------------------+ +---------------------------+ +------------------------+
.
├── backend/
│ ├── app/
│ │ ├── ai/
│ │ ├── ingestion/
│ │ ├── models/
│ │ ├── routes/
│ │ ├── __init__.py
│ │ └── config.py
│ ├── tests/
│ └── pyproject.toml
├── frontend/
│ ├── src/
│ ├── package.json
│ └── vite.config.ts
├── docker-compose.yml
└── .env.example
- Copy env template and fill secrets when available:
cp .env.example .env
- Start PostgreSQL:
docker-compose up -d db
- Start backend:
cd backend poetry install poetry run flask --app app run --debug - Start frontend:
cd frontend npm install npm run dev
GET /api/health-> basic backend status check.
- Real stock data ingestion provider implementation and DB schema migrations.
- REST resources for tickers, summaries, price history, and comparison.
- Grounded AI assistant endpoint using OpenAI Responses API with citations.
- CI workflow for backend tests + frontend build.