Skip to content

About

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Project Title

QuickQuery - SQL Assistant for Non-Tech Users

Short Description

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.

Tech Stack

  • Backend: Node.js (Express), SQLite, Compromise (NLP)
  • Frontend: React, Tailwind CSS, Axios
  • Other: JavaScript, CORS

Features

  • 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.

How to Run

Prerequisites: Windows, Node.js v16+, and ~500MB free space.

Backend Setup

  • Open PowerShell and run:
  • cd F:\hackathon\server
    npm install
    npm start
  • If successful, backend runs at http://localhost:5000

Frontend Setup

  • Open another PowerShell window:
  • cd F:\hackathon\client
    npm install
    npm start
  • Access app at http://localhost:3000

Try It Out

  • Example query: “salary greater than 60000”
  • Results appear in a table with SQL displayed above.
  • Typos or unsupported formats show helpful messages.

Troubleshooting Tips

  • Server not starting? Check the db folder exists. Delete database.sqlite and retry.
  • Frontend blank? Ensure the backend is running. Open DevTools → Network tab to inspect API calls.
  • Slow install? Run npm cache clean --force and try again.

AI Usage

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

About

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages