QuickQuery - SQL Assistant for Non-Tech Users
QuickQuery is a web app that lets anyone explore a company database using plain English queries like “show employees in Sales” or “names starting with A”. It automatically converts your input into SQL and shows results in a clean, responsive table—no coding required. Built for HR, managers, and team leads, it includes an experimental AI module for more intuitive querying.
- Backend: Node.js (Express), SQLite, Compromise (NLP)
- Frontend: React, Tailwind CSS, Axios
- Other: JavaScript, CORS
- Natural Language Queries: Ask things like “salary between 50k and 60k” or “department = Sales.”
- Smart Filters: Exact matches (e.g., “name is Alice”), partials (“name ends with n”), or ranges (“salary between ...”).
- Clean UI: Responsive table with styled header, alternating rows, and a live loading spinner. Displays generated SQL clearly.
- Error Feedback: Friendly alerts like “Unsupported query format” help you adjust inputs.
- AI-Powered Preview: Experimental NLP parses queries to prepare for more advanced understanding in the future.
Prerequisites: Windows, Node.js v16+, and ~500MB free space.
- Open PowerShell and run:
- If successful, backend runs at
http://localhost:5000
cd F:\hackathon\servernpm installnpm start
- Open another PowerShell window:
- Access app at
http://localhost:3000
cd F:\hackathon\clientnpm installnpm start
- Example query: “salary greater than 60000”
- Results appear in a table with SQL displayed above.
- Typos or unsupported formats show helpful messages.
- Server not starting? Check the
dbfolder exists. Deletedatabase.sqliteand retry. - Frontend blank? Ensure the backend is running. Open DevTools → Network tab to inspect API calls.
- Slow install? Run
npm cache clean --forceand try again.
QuickQuery includes an experimental AI feature powered by the Compromise NLP library. While still under development, it analyzes English queries to detect structure (like columns, filters, operators).
- Example: “name is Alice” →
SELECT * FROM employees WHERE name = 'Alice' - Current Status: Experimental only—doesn't return results yet.
- Why It Matters: It shows our goal of enabling fully conversational database access.
- Next Steps: Extend support for aggregations, fuzzy matches, and join queries.
Built for the HackMern Hackathon, May 2025