From 4ff1a445852a96c23ba9a0bfadafaf0916665901 Mon Sep 17 00:00:00 2001 From: Ibis Prevedello Date: Tue, 28 Feb 2023 20:25:35 -0300 Subject: [PATCH] refac: create backend folder --- README.md | 2 - backend/.gitignore | 130 +++++++++++++++++++++++ Dockerfile => backend/Dockerfile | 0 build_and_push => backend/build_and_push | 0 poetry.lock => backend/poetry.lock | 0 pyproject.toml => backend/pyproject.toml | 0 {src => backend/src}/app.py | 0 {src => backend/src}/endpoints.py | 0 {src => backend/src}/list_endpoints.py | 0 {src => backend/src}/payload.py | 0 {src => backend/src}/signature.py | 0 {src => backend/src}/util.py | 0 docker-compose.yml | 0 13 files changed, 130 insertions(+), 2 deletions(-) delete mode 100644 README.md create mode 100644 backend/.gitignore rename Dockerfile => backend/Dockerfile (100%) rename build_and_push => backend/build_and_push (100%) rename poetry.lock => backend/poetry.lock (100%) rename pyproject.toml => backend/pyproject.toml (100%) rename {src => backend/src}/app.py (100%) rename {src => backend/src}/endpoints.py (100%) rename {src => backend/src}/list_endpoints.py (100%) rename {src => backend/src}/payload.py (100%) rename {src => backend/src}/signature.py (100%) rename {src => backend/src}/util.py (100%) create mode 100644 docker-compose.yml diff --git a/README.md b/README.md deleted file mode 100644 index a6dd1750a..000000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# expert-backend -Backend API to interface with react flow frontend diff --git a/backend/.gitignore b/backend/.gitignore new file mode 100644 index 000000000..314d77847 --- /dev/null +++ b/backend/.gitignore @@ -0,0 +1,130 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class +notebooks + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +pip-wheel-metadata/ +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/ + +# 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 +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +.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/ diff --git a/Dockerfile b/backend/Dockerfile similarity index 100% rename from Dockerfile rename to backend/Dockerfile diff --git a/build_and_push b/backend/build_and_push similarity index 100% rename from build_and_push rename to backend/build_and_push diff --git a/poetry.lock b/backend/poetry.lock similarity index 100% rename from poetry.lock rename to backend/poetry.lock diff --git a/pyproject.toml b/backend/pyproject.toml similarity index 100% rename from pyproject.toml rename to backend/pyproject.toml diff --git a/src/app.py b/backend/src/app.py similarity index 100% rename from src/app.py rename to backend/src/app.py diff --git a/src/endpoints.py b/backend/src/endpoints.py similarity index 100% rename from src/endpoints.py rename to backend/src/endpoints.py diff --git a/src/list_endpoints.py b/backend/src/list_endpoints.py similarity index 100% rename from src/list_endpoints.py rename to backend/src/list_endpoints.py diff --git a/src/payload.py b/backend/src/payload.py similarity index 100% rename from src/payload.py rename to backend/src/payload.py diff --git a/src/signature.py b/backend/src/signature.py similarity index 100% rename from src/signature.py rename to backend/src/signature.py diff --git a/src/util.py b/backend/src/util.py similarity index 100% rename from src/util.py rename to backend/src/util.py diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 000000000..e69de29bb