An interactive SQL learning platform where you can practice SQL queries in a safe sandbox environment.
-
Clone the repository
git clone <your-repo-url> cd queryquest/backend
-
Create virtual environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Setup environment variables
# Copy the example env file cp .env.example .env # Generate a new secret key python -c "from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())" # Add the generated key to .env file
-
Run migrations
python manage.py migrate
-
Start the server
python manage.py runserver
Simply open frontend/index.html in your browser or use Live Server.
Create a .env file in the backend directory with the following variables:
DJANGO_SECRET_KEY=your-generated-secret-key
DEBUG=True
ALLOWED_HOSTS=localhost,127.0.0.1See .env.example for a template.
- Backend: Django 5.2.10, Python
- Frontend: Vanilla JavaScript, HTML5, CSS3
- Database: SQLite (in-memory for queries)
- 🎯 Interactive SQL editor with syntax support
- 📊 Live query results visualization
- 🗃️ Database schema reference
- ⌨️ Keyboard shortcuts (Ctrl+Enter to run)
- 🔒 Safe sandbox (read-only queries)
MIT