fix: Windows compatibility and startup scripts
- Add explicit .env loading in config.py for Windows compatibility - Add backend directory to sys.path in main.py to fix module imports - Add start.bat and start-full.bat for Windows startup - Add frontend/package-lock.json for dependency tracking Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -8,8 +8,15 @@ This module creates and configures the FastAPI application with:
|
||||
- CORS middleware
|
||||
- Exception handlers
|
||||
"""
|
||||
from contextlib import asynccontextmanager
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
# Add backend directory to Python path for imports to work
|
||||
backend_dir = Path(__file__).parent.parent
|
||||
if str(backend_dir) not in sys.path:
|
||||
sys.path.insert(0, str(backend_dir))
|
||||
|
||||
from contextlib import asynccontextmanager
|
||||
from typing import Callable
|
||||
|
||||
from fastapi import FastAPI, Request, status
|
||||
|
||||
Reference in New Issue
Block a user