Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
8c72d1d
remove old poetry version
gkorland Jun 30, 2025
e1c84bd
fix lint
gkorland Jun 30, 2025
f6d2ccd
fix long lines
gkorland Jun 30, 2025
bbc32ff
disable as long as it's a private repo
gkorland Jun 30, 2025
5a83707
fix lint issues
gkorland Jun 30, 2025
fa74cfa
clean lint
gkorland Jun 30, 2025
04a0469
Merge pull request #46 from FalkorDB/main
gkorland Jun 30, 2025
d1edbd4
Merge branch 'staging' into project
gkorland Jun 30, 2025
358f978
fix more lint errors
gkorland Jun 30, 2025
83dfa60
clean more lints
gkorland Jun 30, 2025
c2c96df
fix build
gkorland Jun 30, 2025
9a2c632
Merge branch 'staging' into postgres
gkorland Jun 30, 2025
cfbd893
remove unused import
gkorland Jun 30, 2025
978e3c5
Merge pull request #44 from FalkorDB/project
galshubeli Jun 30, 2025
eb1d8db
Merge branch 'staging' into postgres
gkorland Jun 30, 2025
4cc4799
add login
gkorland Jun 30, 2025
5559339
add postgres button
gkorland Jun 30, 2025
df5bb3a
set style for button
gkorland Jun 30, 2025
7ebd4da
refacor code move to js file
gkorland Jun 30, 2025
9dfa6aa
connect db
gkorland Jun 30, 2025
24d1451
close modal
gkorland Jun 30, 2025
ff262f9
filter users graphs
gkorland Jun 30, 2025
cd74b06
clean style
gkorland Jun 30, 2025
885a665
update login design
gkorland Jul 1, 2025
60a5aff
update req
gkorland Jul 1, 2025
3267418
fix req
gkorland Jul 1, 2025
d81b12b
Add query result
gkorland Jul 1, 2025
4876a70
add user readable result
gkorland Jul 25, 2025
388ec6e
handle none SELECT queries
gkorland Jul 25, 2025
337012b
merge step 1 and 2 to single message
gkorland Jul 25, 2025
2792847
add warning message for distructive operations
gkorland Jul 25, 2025
4316c2e
refactor agents file to a folder
gkorland Jul 25, 2025
24f882a
disable buttons on warning message after selection
gkorland Jul 25, 2025
2843da9
refresh schema on db change
gkorland Jul 25, 2025
01623ca
change user bubble
gkorland Jul 25, 2025
eafdefc
wrap a long text
gkorland Jul 25, 2025
4e52f19
json fix
gkorland Jul 25, 2025
1753230
add spinner on graph load
gkorland Jul 25, 2025
c92c93f
change text on spinning
gkorland Jul 25, 2025
99c73d0
add example SQL file for CRM
gkorland Jul 25, 2025
e49c4f4
fix expired token
gkorland Jul 25, 2025
406c54a
Add user image
gkorland Jul 25, 2025
248ac1c
add use image in chat
gkorland Jul 25, 2025
e6dcc8e
fix text color
gkorland Jul 25, 2025
59e69dd
add dark/light mode
gkorland Jul 25, 2025
e41c378
fix the warning message
gkorland Jul 25, 2025
6d375e7
update menu button for dark/light
gkorland Jul 25, 2025
5825cc2
tune down the colors
gkorland Jul 26, 2025
211b31c
fix icon color in light mode
gkorland Jul 26, 2025
5810e99
add docker
gkorland Jul 27, 2025
5c10089
replace the system icon dark/light
gkorland Jul 27, 2025
d446696
fix Connect to Postgres in light mode
gkorland Jul 27, 2025
1ad7437
add responisve support
gkorland Jul 27, 2025
736d590
remove dead code
gkorland Jul 27, 2025
cc9f197
fix #65 disable chat input when no schema
gkorland Jul 27, 2025
297371e
fix #67 switch user and bot sides:
gkorland Jul 27, 2025
f064d95
fix #68 show the first letter as alt
gkorland Jul 27, 2025
965008e
fix #54 add login with github
gkorland Jul 27, 2025
4fc97ea
fix #58 add appoval message on reset
gkorland Jul 27, 2025
2ee77a8
revert change on menu open in full screen
gkorland Jul 27, 2025
246bb00
remove TOKEN, Suggestions and Enter on connect
gkorland Jul 27, 2025
0102f46
handle focus and Esc on modals
gkorland Jul 27, 2025
cf9dcb3
comment out insecured schema load paths
gkorland Jul 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ permissions:

jobs:
dependency-review:
if: github.repository_visibility == 'public'
runs-on: ubuntu-latest
steps:
- name: 'Checkout repository'
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:

- name: Install Poetry
uses: abatilo/actions-poetry@v3
with:
poetry-version: "1.8.3"

- name: Configure Poetry
run: |
Expand Down
34 changes: 34 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Use a single stage build with FalkorDB base image
FROM falkordb/falkordb:latest

ENV PYTHONUNBUFFERED=1 \
FALKORDB_HOST=localhost \
FALKORDB_PORT=6379

USER root

# Install Python and pip, netcat for wait loop in start.sh
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
netcat-openbsd \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN python3 -m pip install --no-cache-dir --break-system-packages -r requirements.txt

# Copy application code
COPY . .

# Copy and make start.sh executable
COPY start.sh /start.sh
RUN chmod +x /start.sh

EXPOSE 5000 6379 3000


# Use start.sh as entrypoint
ENTRYPOINT ["/start.sh"]
51 changes: 51 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,61 @@

# Text2SQL

Text2SQL is a web application that allows users to interact with databases using natural language queries, powered by AI and graph database technology.

## Setup

### Prerequisites

- Python 3.8+
- Poetry (for dependency management)
- FalkorDB instance (or Redis with FalkorDB module)

### Installation

1. Clone the repository
2. Install dependencies with Poetry:
```bash
poetry install
```

3. Set up environment variables by copying `.env.example` to `.env` and filling in your values:
```bash
cp .env.example .env
```

### OAuth Configuration

This application supports authentication via Google and GitHub OAuth. You'll need to set up OAuth applications for both providers:

#### Google OAuth Setup

1. Go to [Google Cloud Console](https://console.developers.google.com/)
2. Create a new project or select an existing one
3. Enable the Google+ API
4. Go to "Credentials" and create an OAuth 2.0 Client ID
5. Add your domain to authorized origins (e.g., `http://localhost:5000`)
6. Add the callback URL: `http://localhost:5000/login/google/authorized`
7. Copy the Client ID and Client Secret to your `.env` file

#### GitHub OAuth Setup

1. Go to GitHub Settings → Developer settings → OAuth Apps
2. Click "New OAuth App"
3. Fill in the application details:
- Application name: Your app name
- Homepage URL: `http://localhost:5000`
- Authorization callback URL: `http://localhost:5000/login/github/authorized`
4. Copy the Client ID and Client Secret to your `.env` file

### Running the Application

```bash
poetry run flask --app api.index run
```

The application will be available at `http://localhost:5000`.

## Introduction

![image](https://github.com/user-attachments/assets/8b1743a8-1d24-4cb7-89a8-a95f626e68d9)
Expand Down
Loading
Loading