DBQnA React Application

📸 Project Screenshots

Initial Page project-screenshot

Enter DB credentials and connect to DB project-screenshot

DB connection failed project-screenshot

DB connection successful project-screenshot

Enter user question project-screenshot

SQL query generation failed project-screenshot

SQL query generation successful project-screenshot

🧐 Features

Here’re some of the project’s features:

  • Database Connection Validation: The app allows users to input database credentials (host, user, database, password, and port). Upon clicking the “Connect” button, it verifies the connection status through an API, providing feedback if the database connection is successful or not.

  • Natural Language to SQL Query: Once the database connection is established, the user can input an English-language question, which is then sent to an API for conversion into an SQL query. The generated SQL is displayed in the UI for user review.

  • Scroll to Bottom: The output generated will automatically scroll to the bottom.

🛠️ Get it Running

  1. Clone the repo.

  2. cd command to the current folder.

  3. Modify the required .env variables.

    VITE_TEXT_TO_SQL_URL = ''
    
  4. Execute npm install to install the corresponding dependencies.

  5. Execute npm run dev in both environments