Repository navigation
Quick Start
Kshitij Joshi edited this page May 26, 2026
·
1 revision
Get Ask My PostgreSQL Database running in 5 minutes!
- Python 3.10+
- Node.js 18+
- PostgreSQL (local or remote)
- Ollama
# macOS
brew install ollama
# Linux
curl -fsSL https://ollama.com/install.sh | sh
# Pull model
ollama pull llama3.2# Clone repository
git clone https://github.com/kjosh2008/ask-my-postgres-database.git
cd ask-my-postgres-database/backend
# Create virtual environment
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Configure database
cp .env.example .env
nano .env # Edit with your database credentialsEdit .env:
DB_HOST=localhost
DB_NAME=your_database
DB_USER=postgres
DB_PASSWORD=your_passwordcd ../frontend
# Install dependencies
npm installTerminal 1 - Backend:
cd backend
source venv/bin/activate
python main.pyTerminal 2 - Frontend:
cd frontend
npm run dev- Open http://localhost:3000
- Click an example question
- See the magic happen! ✨
Try these questions:
- "Who are the highest paid employees?"
- "Which departments are over budget?"
- "Show me all employees in Finance"
- Read the User Guide for advanced features
- Check Query Examples for inspiration
- Configure Embeddings for semantic search
Backend won't start?
- Check Ollama is running:
ollama list - Verify database connection:
psql -h localhost -U postgres
Frontend shows blank page?
- Check browser console (F12) for errors
- Verify backend is running at http://localhost:8000
Still stuck?
- See Troubleshooting guide
- Open an issue