dramaling-app/apps/backend/README.md

1.0 KiB

Drama Ling Backend API

.NET Core 後端 API 服務

技術棧

  • .NET 8: 跨平台框架
  • ASP.NET Core Web API: RESTful API
  • Entity Framework Core: ORM 資料庫存取
  • PostgreSQL: 主要資料庫
  • Redis: 快取和會話管理
  • JWT: 身份驗證

專案結構

backend/
├── DramaLing.API/             # Web API 專案
├── DramaLing.Application/     # 應用服務層  
├── DramaLing.Core/           # 領域模型層
├── DramaLing.Infrastructure/ # 基礎設施層
├── DramaLing.Tests/          # 測試專案
└── DramaLing.sln             # 解決方案檔

快速開始

1. 安裝相依套件

dotnet restore

2. 設定資料庫

# 建立資料庫
dotnet ef database update --project DramaLing.Infrastructure --startup-project DramaLing.API

3. 啟動開發服務器

dotnet run --project DramaLing.API
# API: http://localhost:5000
# Swagger: http://localhost:5000

開發指南

詳細開發文檔請參考:../../docs/04_technical/