This project demonstrates an iterative way to build SQL queries
- Python 3.8+
uv
(for package management)- Node.js and npm (for the frontend)
https://docs.astral.sh/uv/getting-started/installation/
For convenience, you can use the provided script to install dependencies and run both the backend and frontend in a single command:
uv venv
python run.py
This script:
- Checks if
uv
andnpm
are installed, exits if either is not available - Installs dependencies for both backend and frontend
- Starts the FastAPI backend server
- Waits for the backend to initialize
- Starts the Vite React frontend development server
-
Start the FastAPI Backend:
Open a terminal, navigate to the
backend
directory, install dependencies, and run the server:cd backend uv pip install -r requirements.txt uv run uvicorn main:app --reload --port 8000
The backend server will be running at
http://localhost:8000
. -
Start the Vite React Frontend:
Open another terminal, navigate to the
frontend-vite
directory, install dependencies, and run the development server:cd frontend-vite npm install npm run dev
The frontend application will be available in your browser, usually at
http://localhost:5173
.
All process outputs (installation, backend, and frontend) will be visible in the terminal.
The frontend is configured to connect to the backend API running on port 8000.