A demo project with a Next.js frontend and a FastAPI-based backend agent for stock analysis and chat.
frontend/— Next.js 15 app (UI)agent/— FastAPI backend agent (Python)
Create a .env file in each relevant directory as needed.
OPENAI_API_KEY=<<your-openai-key-here>>OPENAI_API_KEY=<<your-openai-key-here>>cd agent
poetry install
poetry run python main.pycd frontend
pnpm install
pnpm run devOpen http://localhost:3000 in your browser to view the app.
- Ensure the backend agent is running before using the frontend.
- Update environment variables as needed for your deployment.
