Got pre-commit hooks working, starting setup for FastAPI.

Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
2025-08-21 10:26:29 -04:00
parent 51c1c97f20
commit 4680d15914
3 changed files with 3132 additions and 886 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.python-version

3994
backend/poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,8 +1,25 @@
from fastapi import FastAPI
"""Main application startup for the Numinar coding project backend."""
app = FastAPI()
from typing import Any
from fastapi import FastAPI
from starlette.config import Config
config = Config(".env")
ENVIRONMENT = config("ENVIRONMENT", default="development")
SHOW_DOCS_ENVIRONMENTS = {"development", "staging"}
app_configs: dict[str, Any] = {"title": "Numinar Coding Project"}
if ENVIRONMENT not in SHOW_DOCS_ENVIRONMENTS:
app_configs["openapi_url"] = None # Disable OpenAPI schema
app = FastAPI(**app_configs)
@app.get("/")
async def root():
return {"message": "Welcome to the Numinar Coding Project Backend!"}
"""Root endpoint to verify the service is running."""
return {"message": "Welcome to the Numinar Coding Project Backend!"}