From 3aab5669ab62e84d986d34922e0d98ab36473125 Mon Sep 17 00:00:00 2001 From: raahulmona <157174139+raahulmona@users.noreply.github.com> Date: Fri, 8 Mar 2024 09:32:49 +0100 Subject: [PATCH] Removing duplicate copy --- .gitignore copy | 144 ---------------- README copy.md | 112 ------------ README.md | 2 +- docker-compose copy.yml | 37 ---- pip | 0 pip copy | 0 text2sql_dag copy.html | 369 ---------------------------------------- text2sql_dag.html | 369 ---------------------------------------- 8 files changed, 1 insertion(+), 1032 deletions(-) delete mode 100644 .gitignore copy delete mode 100644 README copy.md delete mode 100644 docker-compose copy.yml delete mode 100644 pip delete mode 100644 pip copy delete mode 100644 text2sql_dag copy.html delete mode 100644 text2sql_dag.html diff --git a/.gitignore copy b/.gitignore copy deleted file mode 100644 index 9d38591f..00000000 --- a/.gitignore copy +++ /dev/null @@ -1,144 +0,0 @@ -### Python template - -.idea/ -.vscode/ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -share/python-wheels/ -*.egg-info/ -.installed.cfg -*.egg -MANIFEST - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.nox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*.cover -*.py,cover -.hypothesis/ -.pytest_cache/ -cover/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -local_settings.py -db.sqlite3 -db.sqlite3-journal - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -.pybuilder/ -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# IPython -profile_default/ -ipython_config.py - -# pyenv -# For a library or package, you might want to ignore these files since the code is -# intended to run in multiple environments; otherwise, check them in: -# .python-version - -# pipenv -# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. -# However, in case of collaboration, if having platform-specific dependencies or dependencies -# having no cross-platform support, pipenv may install dependencies that don't work, or not -# install all needed dependencies. -#Pipfile.lock - -# PEP 582; used by e.g. github.com/David-OConnor/pyflow -__pypackages__/ - -# Celery stuff -celerybeat-schedule -celerybeat.pid - -# SageMath parsed files -*.sage.py - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Spyder project settings -.spyderproject -.spyproject - -# Rope project settings -.ropeproject - -# mkdocs documentation -/site - -# mypy -.mypy_cache/ -.dmypy.json -dmypy.json - -# Pyre type checker -.pyre/ - -# pytype static type analyzer -.pytype/ - -# Cython debug symbols -cython_debug/ - -.python-version diff --git a/README copy.md b/README copy.md deleted file mode 100644 index 3b3aa204..00000000 --- a/README copy.md +++ /dev/null @@ -1,112 +0,0 @@ -# FastAPI Starter Project - -Project includes: - -- `fastapi` -- `sqlmodel` -- `alembic` - -## - -## Models - -Check db/models and migrations, there is one example. - -## Using docker - -Setup env variables in `app/core/.env` using `app/core/.env-example` - -#### Install and run - -```bash -docker-compose up -d web - -# you can track logs with: -docker-compose logs -f --tail=100 web -``` - -Go to: http://localhost:8000/api/docs/ - -#### Migrations - -Create migrations - -```bash -docker-compose exec web alembic revision --autogenerate -m "Example model" -``` - -Apply migrations - -```bash -docker-compose exec web alembic upgrade head -``` - -#### Tests - -Run tests - -```bash -docker-compose exec web pytest . -``` - -## Without docker - -#### Install - -```bash -cd app/ -pip install -r requirements/development.txt -``` - -Setup env variables in `app/core/.env`. - -#### Run - -```bash -cd app/ -python app/server.py -``` - -Go to: http://localhost:8000/api/docs/ - -#### Migrations - -Create migrations - -```bash -alembic revision --autogenerate -m "Example model" -``` - -Apply migrations - -```bash -alembic upgrade head -``` - -#### Tests - -Run tests - -```bash -pytest . -``` - -## Environment Variables - -To run this project, you will need to add the following environment variables to your app/core/.env file - -`BASE_URL` - default: http://localhost:8000 - -`RELOAD` - default: false - -`DB_HOST` - default: localhost - -`DB_PORT` - default: 5432 - -`DB_USER` - default: postgres - -`DB_PASS` - default: postgres - -`DB_BASE` - default: db - -`DB_ECHO` - default: false diff --git a/README.md b/README.md index 3b3aa204..45fab159 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# FastAPI Starter Project +# Search Project includes: diff --git a/docker-compose copy.yml b/docker-compose copy.yml deleted file mode 100644 index ac9dfa8c..00000000 --- a/docker-compose copy.yml +++ /dev/null @@ -1,37 +0,0 @@ -version: '3.8' - -services: - - web: - build: - context: . - dockerfile: docker/Dockerfile.local - command: ./scripts/docker-entrypoint.sh - volumes: - - ./app:/usr/src/app - ports: - - 8000:8000 - depends_on: - db: - condition: service_healthy - links: - - db - - db: - image: postgres:14-alpine - ports: - - 5432:5432 - volumes: - - db_data:/var/lib/postgresql/data - environment: - - POSTGRES_USER=postgres - - POSTGRES_PASSWORD=postgres - - POSTGRES_DB=db - healthcheck: - test: ["CMD-SHELL", "pg_isready -U postgres"] - interval: 5s - timeout: 5s - retries: 5 - -volumes: - db_data: diff --git a/pip b/pip deleted file mode 100644 index e69de29b..00000000 diff --git a/pip copy b/pip copy deleted file mode 100644 index e69de29b..00000000 diff --git a/text2sql_dag copy.html b/text2sql_dag copy.html deleted file mode 100644 index afe24b22..00000000 --- a/text2sql_dag copy.html +++ /dev/null @@ -1,369 +0,0 @@ - - - - - - - - - -
-

-
- - - - - - -
-

-
- - - - - -
- - -
-
- - - - - - - \ No newline at end of file diff --git a/text2sql_dag.html b/text2sql_dag.html deleted file mode 100644 index afe24b22..00000000 --- a/text2sql_dag.html +++ /dev/null @@ -1,369 +0,0 @@ - - - - - - - - - -
-

-
- - - - - - -
-

-
- - - - - -
- - -
-
- - - - - - - \ No newline at end of file