Add api server code and workflow

This commit is contained in:
Xin Wang
2025-04-29 15:03:02 +08:00
commit a1a4bceb9a
13 changed files with 16662 additions and 0 deletions

1
src/core/__init__.py Normal file
View File

@@ -0,0 +1 @@
# This file is intentionally left blank.

11
src/core/config.py Normal file
View File

@@ -0,0 +1,11 @@
import os
from dotenv import load_dotenv
load_dotenv()
class Config:
PROJECT_NAME = "Flexible Employment Analysis API"
API_V1_STR = "/api/v1"
SECRET_KEY = os.getenv("SECRET_KEY", "your-secret-key")
DATABASE_URL = os.getenv("DATABASE_URL", "sqlite:///./test.db")
DEBUG = os.getenv("DEBUG", "false").lower() in ("true", "1", "t")