Installation
GeoGPT consists of a Next.js frontend and a FastAPI backend. Follow these steps to set up the project for local development.
Prerequisites
- Node.js 18+ and npm
- Python 3.9+
- GDAL/OGR libraries (for spatial data processing)
1. Frontend Setup
Install dependencies and start the development server:
npm install
npm run dev
npm run dev
2. Backend Setup
Navigate to the backend directory, install requirements, and run the FastAPI server:
pip install -r requirements.txt
uvicorn main:app --reload
uvicorn main:app --reload
3. Environment Variables
Create a .env.local file in the root directory:
NEXT_PUBLIC_API_URL=http://localhost:8000
Production Deployment
The application is designed to be deployed on platforms like Vercel (frontend) and Render/Heroku (backend). Ensure the NEXT_PUBLIC_API_URLis updated to your production backend URL.