An interactive agricultural advice application with map visualization capabilities.
- Node.js (v16 or later)
- Python (v3.8 or later)
- Poetry for Python dependency management
- PNPM for JavaScript dependency management
- Clone the repository
- Install dependencies:
# Install PNPM globally if you don't have it
npm install -g pnpm
# Install all dependencies
pnpm run setup- Create a
.envfile in theconfigdirectory with the following:
VITE_MAPBOX_ACCESS_TOKEN=your_mapbox_token
OPENROUTER_API_KEY=your_openrouter_api_key
To run the entire application (frontend + backend) in development mode:
pnpm run devThis will start both the backend FastAPI server and the frontend Vite development server in parallel.
To run just the backend:
pnpm run backendTo run just the frontend:
pnpm run frontendTo build the frontend for production:
pnpm run buildfrontend/- Vue.js frontend applicationbackend/- Python FastAPI backend serverconfig/- Configuration files including environment variables
The backend API is available at http://localhost:8157 when running in development mode.
/chat- POST request to send messages to the chat API