HargovindArora / AdHoc-Query-Builder

Building SQL queries to query Relational Database without worrying about learning or knowing SQL.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AdHoc-Query-Builder

Building SQL queries to query Relational Database without worrying about learning or knowing SQL. This is the backend for Adhoc-Query-Builder, you can use Postman to try it out. The frontend can be found here (In development). For running this project please make sure that you have MySQL and MongoDB installed on your system

Setting up the project

  • This Project requires Python version above 3.8, and it is specifically built on Python 3.8.5
  • Create virtual environment
python3 -m venv env
  • Activate virtual env
source env/bin/activate
  • Update pip
pip3 install --upgrade pip
  • Installing dependencies
pip3 install -r requirements.txt
  • Setting flask environment variables
export FLASK_APP=run.py
export FLASK_ENV=development (Do this step everytime when you start venv)
  • Setting mysql database configurations

    • Go to "config.py"
    • Change the values of "MYSQL_USER", "MYSQL_PASSWORD", "MYSQL_DATABASE" according to your mysql configurations
  • Running the application

flask run

Guidelines for contribution

  • If you want to contribute:

    • Fork this repo
    • Clone the forked repo
    • Follow the "Setting up the project" steps
    • Checkout a new branch
    • Make changes and commit
    • Push changes and generate a Pull Request
    • Make sure your code is properly formatted and readable

About

Building SQL queries to query Relational Database without worrying about learning or knowing SQL.


Languages

Language:Python 75.3%Language:HTML 24.7%