From 38aadba58157a2e4cf13e45eb0c4798afd51dc00 Mon Sep 17 00:00:00 2001 From: Sk_Akib_Ahammed Date: Thu, 5 Feb 2026 12:38:38 +0530 Subject: [PATCH] starting with the new folder structure --- Dockerfile | 2 +- app/v1/__init__.py | 0 app/{ => v1}/app.py | 0 app/{ => v1}/auth.py | 0 app/{ => v1}/firebase_init.py | 0 app/{ => v1}/mailer.py | 0 app/{ => v1}/manager.py | 0 app/{ => v1}/schema.py | 0 app/{ => v1}/staff.py | 0 app/{ => v1}/user.py | 0 app/{ => v1}/webhook.py | 0 main.py | 2 +- 12 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 app/v1/__init__.py rename app/{ => v1}/app.py (100%) rename app/{ => v1}/auth.py (100%) rename app/{ => v1}/firebase_init.py (100%) rename app/{ => v1}/mailer.py (100%) rename app/{ => v1}/manager.py (100%) rename app/{ => v1}/schema.py (100%) rename app/{ => v1}/staff.py (100%) rename app/{ => v1}/user.py (100%) rename app/{ => v1}/webhook.py (100%) diff --git a/Dockerfile b/Dockerfile index 877b0c8..6f58413 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,5 +50,5 @@ COPY . . EXPOSE 8000 # Run the application. -CMD ["uvicorn", "app.app:app", "--host", "0.0.0.0", "--port", "8000"] +CMD ["uvicorn", "app.v1.app:app", "--host", "0.0.0.0", "--port", "8000"] diff --git a/app/v1/__init__.py b/app/v1/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/app/app.py b/app/v1/app.py similarity index 100% rename from app/app.py rename to app/v1/app.py diff --git a/app/auth.py b/app/v1/auth.py similarity index 100% rename from app/auth.py rename to app/v1/auth.py diff --git a/app/firebase_init.py b/app/v1/firebase_init.py similarity index 100% rename from app/firebase_init.py rename to app/v1/firebase_init.py diff --git a/app/mailer.py b/app/v1/mailer.py similarity index 100% rename from app/mailer.py rename to app/v1/mailer.py diff --git a/app/manager.py b/app/v1/manager.py similarity index 100% rename from app/manager.py rename to app/v1/manager.py diff --git a/app/schema.py b/app/v1/schema.py similarity index 100% rename from app/schema.py rename to app/v1/schema.py diff --git a/app/staff.py b/app/v1/staff.py similarity index 100% rename from app/staff.py rename to app/v1/staff.py diff --git a/app/user.py b/app/v1/user.py similarity index 100% rename from app/user.py rename to app/v1/user.py diff --git a/app/webhook.py b/app/v1/webhook.py similarity index 100% rename from app/webhook.py rename to app/v1/webhook.py diff --git a/main.py b/main.py index 902b150..497310f 100644 --- a/main.py +++ b/main.py @@ -3,4 +3,4 @@ import uvicorn if __name__ == "__main__": - uvicorn.run("app.app:app", host="0.0.0.0", port=8000, reload=True) + uvicorn.run("app.v1.app:app", host="0.0.0.0", port=8000, reload=True)