Skip to content

marco79423/jessigod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

傑西神教 jessigod

jessigod

網站: https://jessigod.marco79423.net/

實作相關

前端

使用 next.js / Material-UI 開發。

專案架構

frontend/
    packages.json
    next.config.js

    public/                          # 靜態檔案
    pages/                           # 頁面
        index.js                     # 首頁
        api/                         # 後端 API 轉發
    core/                            # 功能 (無關 React)
        features/                    # 核心功能
            secretKeyManager.js
            sayingsManager.js
            ...
        utils/                       # 工具包
            generateRandomString.js
            ...
    components/
        layouts/                     # 頁面佈局
        features/                    # 功能組件
            AboutGod/
            MainBanner/
            ...
        base/                        # 基礎組件
            ...
        hooks/                       # 組件 hook
            useSecretKey.js          # 使用 SecretKey 的 Hook
            ...

後端

使用 fastapi / sqlalchemy 開發。

專案架構

backend/
    requirements.txt
    main.py                          # 啟始點
    dependencies.py                  # 相依
    routers/                         # 路由
        ...
    internal/
        bootstrap.py                 # 啟動服務
        core.py                      # 功能
        database.py                  # 資料庫相關
        models.py                    # 資料庫 Model
        schemas.py                   # schema
        utils.py                     # 工具包