- Added TypeScript build info for frontend. - Created Vite configuration for React application. - Implemented pre-commit hook to run checks before commits. - Set up PostgreSQL Dockerfile with PostGIS support and initialization scripts. - Added database creation script for PostgreSQL with necessary extensions. - Established Python project configuration with dependencies and development tools. - Developed pre-commit script to enforce code quality checks for backend and frontend. - Created PowerShell script to set up Git hooks path.
15 lines
384 B
Python
15 lines
384 B
Python
from fastapi import FastAPI
|
|
|
|
from backend.app.api import router as api_router
|
|
from backend.app.core.config import get_settings
|
|
|
|
|
|
def create_app() -> FastAPI:
|
|
settings = get_settings()
|
|
application = FastAPI(title=settings.project_name, version=settings.version)
|
|
application.include_router(api_router, prefix=settings.api_prefix)
|
|
return application
|
|
|
|
|
|
app = create_app()
|