Spaces:
Runtime error
Runtime error
feat: initial Phase 4 backend deployment
Browse files- Latest Phase 4 backend code
- JWT authentication with default secret
- PostgreSQL database support
- RESTful API with documentation
- AI-powered features ready
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- README.md +23 -3
- src/core/config.py +2 -2
README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
---
|
| 2 |
-
title: Todo
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: docker
|
|
@@ -10,4 +10,24 @@ pinned: false
|
|
| 10 |
license: mit
|
| 11 |
---
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Todo Backend - Phase IV
|
| 3 |
+
emoji: π
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: docker
|
|
|
|
| 10 |
license: mit
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# Todo Backend - Phase IV
|
| 14 |
+
|
| 15 |
+
FastAPI backend with AI-powered task management.
|
| 16 |
+
|
| 17 |
+
## Features
|
| 18 |
+
|
| 19 |
+
- β
JWT Authentication
|
| 20 |
+
- β
RESTful API
|
| 21 |
+
- β
PostgreSQL Database
|
| 22 |
+
- β
AI Chatbot Integration
|
| 23 |
+
- β
Hybrid NLP Engine
|
| 24 |
+
|
| 25 |
+
## Environment
|
| 26 |
+
|
| 27 |
+
Variables configured in Space Settings.
|
| 28 |
+
|
| 29 |
+
## API Endpoints
|
| 30 |
+
|
| 31 |
+
- `/health` - Health check
|
| 32 |
+
- `/docs` - Interactive API documentation
|
| 33 |
+
- `/api/` - REST API
|
src/core/config.py
CHANGED
|
@@ -24,8 +24,8 @@ class Settings(BaseSettings):
|
|
| 24 |
# Database Configuration
|
| 25 |
# ========================================
|
| 26 |
database_url: str = Field(
|
| 27 |
-
default='
|
| 28 |
-
description='
|
| 29 |
)
|
| 30 |
|
| 31 |
# ========================================
|
|
|
|
| 24 |
# Database Configuration
|
| 25 |
# ========================================
|
| 26 |
database_url: str = Field(
|
| 27 |
+
default='postgresql+psycopg://todoapp:todoapp_password@localhost:5432/todoapp',
|
| 28 |
+
description='PostgreSQL connection string',
|
| 29 |
)
|
| 30 |
|
| 31 |
# ========================================
|