From 380926337dea18892179f50cef971d26de728344 Mon Sep 17 00:00:00 2001 From: zhangtao <9480807882@qq.com> Date: Mon, 24 Feb 2025 15:25:07 +0800 Subject: [PATCH] =?UTF-8?q?docs(README):=20=E6=9B=B4=E6=96=B0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E9=85=8D=E7=BD=AE=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改 README.en.md、README.md 和前端 index.html 中的数据库配置说明 - 更新配置文件路径和内容,明确 DB_DRIVER 设置 - 统一数据库名称描述 --- README.en.md | 2 +- README.md | 2 +- frontend/public/site/index.html | 2 +- frontend/public/site/search/search_index.json | 2 +- frontend/public/site/sitemap.xml | 10 +++++----- frontend/public/site/sitemap.xml.gz | Bin 224 -> 224 bytes mkdocs/docs/index.md | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.en.md b/README.en.md index 75300dc6..c5568a1d 100644 --- a/README.en.md +++ b/README.en.md @@ -134,7 +134,7 @@ git clone https://gitee.com/tao__tao/fastapi_vue3_admin.git ``` 2. Modify project database configuration - In the `app/core/config.py` file, modify `SQLALCHEMY_DATABASE_URI`、`MONGO_DB_URL` and `REDIS_URL` + The `DB_DRIVER` database driver type and the corresponding database configuration information are located in the `app/config/.env.dev (.env.test, .env.prod)` files. 3. Create a database named `fastapi_vue_admin` diff --git a/README.md b/README.md index ff17a6ac..5c4a5681 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,7 @@ git clone https://gitee.com/tao__tao/fastapi_vue3_admin.git ``` 2. 修改项目数据库配置信息 - 在`app/core/config.py`文件中的`SQLALCHEMY_DATABASE_URI`、`MONGO_DB_URL`、`REDIS_URL` + 在`app/config/.env.dev(.env.test、.env.prod)`文件中的`DB_DRIVER`数据库驱动类型,以及对应的数据库的配置信息 3. 创建名为`fastapi_vue_admin`的数据库 diff --git a/frontend/public/site/index.html b/frontend/public/site/index.html index 9b931f6a..9b2978e9 100644 --- a/frontend/public/site/index.html +++ b/frontend/public/site/index.html @@ -1409,7 +1409,7 @@
  1. 修改项目数据库配置信息 - 在app/core/config.py文件中的SQLALCHEMY_DATABASE_URIMONGO_DB_URLREDIS_URL

    + 在app/config/.env.dev(.env.test、.env.prod)文件中的DB_DRIVER数据库驱动类型,以及对应的数据库的配置信息

  2. 创建名为fastapi_vue_admin的数据库

    diff --git a/frontend/public/site/search/search_index.json b/frontend/public/site/search/search_index.json index 255eb220..fe60e006 100644 --- a/frontend/public/site/search/search_index.json +++ b/frontend/public/site/search/search_index.json @@ -1 +1 @@ -{"config":{"lang":["en"],"separator":"[\\s\\u200b\\u3000\\-\u3001\u3002\uff0c\uff0e\uff1f\uff01\uff1b]+","pipeline":["stemmer"]},"docs":[{"location":"index.html","title":"\u9879\u76ee\u6982\u8ff0","text":"Fastapi-Vue3-Admin v1.0.0 \u57fa\u4e8eFastapi-Vue-Admi\u524d\u540e\u7aef\u5206\u79bb\u7684\u5feb\u901f\u5f00\u53d1\u6846\u67b6"},{"location":"index.html#_1","title":"\ud83d\udcda \u9879\u76ee\u4ecb\u7ecd","text":"

    Fastapi-Vue3-Admin \u662f\u4e00\u5957\u5b8c\u5168\u5f00\u6e90\u7684\u5feb\u901f\u5f00\u53d1\u5e73\u53f0\uff0c\u63d0\u4f9b\u514d\u8d39\u4f7f\u7528\u3002\u5b83\u7ed3\u5408\u4e86\u73b0\u4ee3\u3001\u9ad8\u6027\u80fd\u7684\u6280\u672f\u6808\uff0c\u65e8\u5728\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u642d\u5efa\u9ad8\u8d28\u91cf\u7684\u4e2d\u540e\u53f0\u7cfb\u7edf\u3002\u9879\u76ee\u76ee\u5f55\u7ed3\u6784\u5982\u4e0b\uff1a

    my_demo_project/fastapi_project\n\u251c\u2500 backend        # \u540e\u7aef\u5de5\u7a0b\n\u251c\u2500 frontend       # \u524d\u7aef\u5de5\u7a0b\n\u251c\u2500 devops         # \u90e8\u7f72\u5de5\u7a0b\n\u251c\u2500 mkdocs         # \u6587\u6863\u5de5\u7a0b\n|\u2500 README.en.md   # \u82f1\u6587\u6587\u6863\n\u2514\u2500 README.md      # \u4e2d\u6587\u6587\u6863\n

    \u5982\u679c\u89c9\u5f97\u9879\u76ee\u4e0d\u9519\uff0c\u6b22\u8fce Star \u652f\u6301\uff01

    "},{"location":"index.html#_2","title":"\ud83c\udf7b \u9879\u76ee\u7279\u70b9","text":""},{"location":"index.html#_3","title":"\ud83d\udccc \u5185\u7f6e\u6a21\u5757","text":""},{"location":"index.html#_4","title":"\ud83c\udf6a \u8d26\u53f7\u4fe1\u606f","text":"\u8d26\u6237\u7c7b\u578b \u8d26\u53f7 \u5bc6\u7801 \u7ba1\u7406\u5458\u8d26\u6237 admin 123456 \u6f14\u793a\u8d26\u6237 demo 123456"},{"location":"index.html#_5","title":"\ud83d\udc77 \u5b89\u88c5\u548c\u4f7f\u7528","text":""},{"location":"index.html#_6","title":"\u7248\u672c\u8bf4\u660e","text":"\u7c7b\u578b \u6280\u672f\u6808 \u7248\u672c \u540e\u7aef Python 3.10 \u540e\u7aef FastAPI 0.109 \u524d\u7aef Node.js >= 20.0\uff08\u63a8\u8350\u4f7f\u7528\u6700\u65b0\u7248\uff09 \u524d\u7aef npm 16.14 \u524d\u7aef Vue3 3.3 \u6570\u636e\u5e93 MySQL 8.0 \uff08\u63a8\u8350\u4f7f\u7528\u6700\u65b0\u7248\uff09 \u6570\u636e\u5e93 PostgreSQL 14\uff08\u5176\u4ed6\u7248\u672c\u5747\u672a\u6d4b\u8bd5\uff09 \u6570\u636e\u5e93 MongoDB 8.0\uff08\u63a8\u8350\u4f7f\u7528\u6700\u65b0\u7248\uff09 \u4e2d\u95f4\u4ef6 Redis 7.0 \uff08\u63a8\u8350\u4f7f\u7528\u6700\u65b0\u7248\uff09"},{"location":"index.html#_7","title":"\u83b7\u53d6\u4ee3\u7801","text":"
    git clone https://gitee.com/tao__tao/fastapi_vue3_admin.git\n
    "},{"location":"index.html#_8","title":"\u540e\u7aef","text":"
    1. \u5b89\u88c5\u4f9d\u8d56

    shell cd backend pip3 install -r requirements.txt

    1. \u4fee\u6539\u9879\u76ee\u6570\u636e\u5e93\u914d\u7f6e\u4fe1\u606f \u5728app/core/config.py\u6587\u4ef6\u4e2d\u7684SQLALCHEMY_DATABASE_URI\u3001MONGO_DB_URL\u3001REDIS_URL

    2. \u521b\u5efa\u540d\u4e3afastapi_vue_admin\u7684\u6570\u636e\u5e93

    3. \u521d\u59cb\u5316\u6570\u636e\u5e93\u6570\u636e

    shell # \u8fdb\u5165\u540e\u7aef\u6839\u76ee\u5f55 backend \u4e0b\u8fd0\u884c # \u8fd0\u884c\u547d\u4ee4\u540e\u4f1a\u81ea\u52a8\u751f\u6210\u6570\u636e\u5e93\u5185\u7684\u8868\u548c\u6570\u636e # \u5982\u5df2\u521d\u59cb\u5316\u6570\u636e\u5e93\u6570\u636e\uff0c\u6b64\u547d\u4ee4\u53ef\u4e0d\u6267\u884c python3 main.py init

    1. \u542f\u52a8

    shell # \u8fdb\u5165\u540e\u7aef\u6839\u76ee\u5f55 backend \u4e0b\u8fd0\u884c python3 main.py run # \u5982\u679c\u4f7f\u7528celery\u7ba1\u7406\u4efb\u52a1\uff0c\u9700\u8981\u53e6\u5916\u542f\u52a8celery \u542f\u52a8\u666e\u901a\u4efb\u52a1work: celery -A celery_app.celery_app worker --loglevel=info \u542f\u52a8\u5b9a\u65f6\u4efb\u52a1work: celery -A celery_app.celery_app beat --loglevel=info

    "},{"location":"index.html#_9","title":"\u524d\u7aef","text":"
    1. \u5b89\u88c5\u4f9d\u8d56

    shell cd frontend npm install

    1. \u8fd0\u884c

    shell npm run dev

    1. \u6253\u5305

    shell npm run build

    "},{"location":"index.html#_10","title":"\u8bbf\u95ee\u9879\u76ee","text":""},{"location":"index.html#_11","title":"\ud83d\udd27 \u6a21\u5757\u5c55\u793a","text":""},{"location":"index.html#_12","title":"\u767b\u9646","text":""},{"location":"index.html#_13","title":"\u4eea\u8868\u76d8","text":""},{"location":"index.html#_14","title":"\u83dc\u5355\u7ba1\u7406","text":""},{"location":"index.html#_15","title":"\u90e8\u95e8\u7ba1\u7406","text":""},{"location":"index.html#_16","title":"\u5c97\u4f4d\u7ba1\u7406","text":""},{"location":"index.html#_17","title":"\u89d2\u8272\u7ba1\u7406","text":""},{"location":"index.html#_18","title":"\u7528\u6237\u7ba1\u7406","text":""},{"location":"index.html#_19","title":"\u65e5\u5fd7\u7ba1\u7406","text":""},{"location":"index.html#_20","title":"\u914d\u7f6e\u7ba1\u7406","text":""},{"location":"index.html#_21","title":"\u5728\u7ebf\u7528\u6237\u7ba1\u7406","text":""},{"location":"index.html#_22","title":"\u670d\u52a1\u5668\u76d1\u63a7","text":""},{"location":"index.html#_23","title":"\u7f13\u5b58\u76d1\u63a7","text":""},{"location":"index.html#_24","title":"\u4efb\u52a1\u7ba1\u7406","text":""},{"location":"index.html#_25","title":"\u63a5\u53e3\u7ba1\u7406","text":""},{"location":"index.html#_26","title":"\u6587\u6863\u7ba1\u7406","text":""},{"location":"index.html#_27","title":"\u4e2a\u4eba\u4fe1\u606f","text":""},{"location":"index.html#_28","title":"\u5728\u7ebf\u6587\u6863","text":""},{"location":"index.html#_29","title":"\u2728 \u7279\u522b\u9e23\u8c22","text":"

    \u611f\u8c22\u4ee5\u4e0b\u9879\u76ee\u7684\u8d21\u732e\u548c\u652f\u6301\uff0c\u4f7f\u672c\u9879\u76ee\u5f97\u4ee5\u987a\u5229\u5b8c\u6210\uff1a

    "},{"location":"index.html#_30","title":"\ud83c\udfa8 \u5fae\u4fe1\u7fa4","text":"

    \u5728\u4e0b\u65b9\u4e3a\u7fa4\u4e8c\u7ef4\u7801\uff0c\u53ef\u4ee5\u7528\u4e8e\u6280\u672f\u4ea4\u6d41\uff0c\u4e5f\u53ef\u4ee5\u4e00\u8d77\u8ba8\u8bba\u5728\u9879\u76ee\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u5404\u79cd\u95ee\u9898\u3002\u771f\u5fc3\u5e0c\u671b\u5927\u5bb6\u4e00\u8d77\u4f18\u5316\u8be5\u9879\u76ee\uff0c\u79ef\u6781\u8ba8\u8bba\uff0c\u8ba9\u6211\u4eec\u4e00\u8d77\u62b1\u56e2\u53d6\u6696\uff01

    "},{"location":"index.html#_31","title":"\u7fa4\u4e8c\u7ef4\u7801","text":""},{"location":"doc/backend.html","title":"\u540e\u7aef\u4ecb\u7ecd","text":"

    \u8be5\u9879\u76ee\u662f\u4e00\u4e2a\u57fa\u4e8epython\u7684web\u670d\u52a1\u6846\u67b6\uff0c\u57fa\u4e8efastapi\u548csqlalchemy\u5b9e\u73b0\uff0c\u652f\u6301\u591a\u7248\u672c\u63a5\u53e3\uff0c\u652f\u6301swagger\u6587\u6863\uff0c\u652f\u6301redis\u7f13\u5b58\uff0c\u652f\u6301mysql\u6570\u636e\u5e93\uff0c\u652f\u6301mongodb\u6570\u636e\u5e93\uff0c\u652f\u6301celery\u4efb\u52a1\u961f\u5217\uff0c\u652f\u6301jwt\u8ba4\u8bc1\uff0c\u652f\u6301\u65e5\u5fd7\u8bb0\u5f55\uff0c\u652f\u6301\u63d2\u4ef6\u6269\u5c55\uff0c\u652f\u6301\u591a\u73af\u5883\u914d\u7f6e\uff0c\u652f\u6301uvicorn\u90e8\u7f72\uff0c\u652f\u6301gunicorn\u90e8\u7f72\uff0c\u652f\u6301docker\u90e8\u7f72\uff0c\u652f\u6301nginx\u90e8\u7f72\u3002

    "},{"location":"doc/backend.html#_2","title":"\u540e\u7aef","text":"
    1. \u5b89\u88c5\u4f9d\u8d56

    shell cd backend pip3 install -r requirements.txt

    1. \u4fee\u6539\u9879\u76ee\u6570\u636e\u5e93\u914d\u7f6e\u4fe1\u606f \u5728app/core/config.py\u6587\u4ef6\u4e2d\u7684SQLALCHEMY_DATABASE_URI\u3001MONGO_DB_URL\u3001REDIS_URL

    2. \u521b\u5efa\u540d\u4e3afastapi_vue_admin\u7684\u6570\u636e\u5e93

    3. \u521d\u59cb\u5316\u6570\u636e\u5e93\u6570\u636e

    shell # \u8fdb\u5165\u540e\u7aef\u6839\u76ee\u5f55 backend \u4e0b\u8fd0\u884c # \u8fd0\u884c\u547d\u4ee4\u540e\u4f1a\u81ea\u52a8\u751f\u6210\u6570\u636e\u5e93\u5185\u7684\u8868\u548c\u6570\u636e # \u5982\u5df2\u521d\u59cb\u5316\u6570\u636e\u5e93\u6570\u636e\uff0c\u6b64\u547d\u4ee4\u53ef\u4e0d\u6267\u884c python3 main.py init

    1. \u542f\u52a8

    shell # \u8fdb\u5165\u540e\u7aef\u6839\u76ee\u5f55 backend \u4e0b\u8fd0\u884c python3 main.py run

    "},{"location":"doc/build.html","title":"\u90e8\u7f72\u4ecb\u7ecd","text":""},{"location":"doc/build.html#docker","title":"docker","text":"
    # \u4f7f\u7528\u5b98\u65b9\u7684 Python 3.10 \u955c\u50cf\u4f5c\u4e3a\u57fa\u7840\u955c\u50cf\nFROM python:3.10\n# \u4f7f\u7528 LABEL \u66ff\u4ee3 MAINTAINER\nLABEL maintainer=\"\u7ba1\u7406\u5458\"\n# \u8bbe\u7f6e python \u73af\u5883\u53d8\u91cf\nENV PYTHONUNBUFFERED 1\nENV PYTHONDONTWRITEBYTECODE 1\n# \u8bbe\u7f6e\u65f6\u533a\nENV TZ Asia/Shanghai\n\n# \u5347\u7ea7pip\u7248\u672c\n# RUN python -m pip install --upgrade pip\n\n# \u521b\u5efa\u5bb9\u5668\u5de5\u4f5c\u76ee\u5f55\nRUN mkdir -p /opt/fastapi_project\n# \u8bbe\u7f6e\u5bb9\u5668\u5185\u5de5\u4f5c\u76ee\u5f55\nWORKDIR /opt/fastapi_project\n# \u5c06\u5f53\u524d\u4e3b\u673a\u76ee\u5f55\u5168\u90e8\u6587\u4ef6\u590d\u5236\u81f3\u5bb9\u5668\u5de5\u4f5c\u76ee\u5f55\nCOPY ./requirements.txt /code/requirements.txt\n# \u5b89\u88c5\u4f9d\u8d56\nRUN pip install --no-cache-dir --upgrade -r /opt/fastapiproject/backend/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple\n\n# \u90e8\u7f72 nginx\nRUN apt-get update && apt-get install -y nginx\nRUN rm /etc/nginx/sites-enabled/default\nCOPY nginx.conf /etc/nginx/sites-available/\nRUN ln -s /etc/nginx/sites-available/nginx.conf /etc/nginx/sites-enabled/\nRUN echo \"daemon off;\" >> /etc/nginx/nginx.conf\n\n# # \u90e8\u7f72mysql\n# RUN apt-get install -y mysql-server\n\n# # \u90e8\u7f72redis\n# RUN apt-get install -y redis-server\n\n# # \u90e8\u7f72mongo\n# RUN apt-get install -y mongodb\n\n\n#CMD \u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0cdaemon off\u540e\u53f0\u8fd0\u884c\uff0c\u5426\u5219\u542f\u52a8\u5b8c\u5c31\u81ea\u52a8\u5173\u95ed\nCMD [\"nginx\", \"-g\", \"daemon off;\"]  \n\nCMD [\"uvicorn\", \"app.main:app\", \"--host\", \"0.0.0.0\", \"--port\", \"80\"]\n# \u66b4\u9732\u7aef\u53e3\nEXPOSE 8000\n# python main.py run \u6216\u8005 uvicorn main:create_app --host 0.0.0.0 --port 8000 --workers 4\nENTRYPOINT [\"uvicorn\", \"backend.main:create_app\", \"--host\", \"0.0.0.0\", \"--port\", \"8000\", \"--workers\", 4]\n# ENTRYPOINT [\"gunicorn\", \"-c\", \"gunicorn.py\", \"main:create_app\"]\n\n
    "},{"location":"doc/build.html#docker-componse","title":"docker-componse","text":"
    version: \"3.10.11\"\n\n# \u5e94\u7528\u670d\u52a1\nservices:\n  # \u5e94\u7528\u670d\u52a1\n  fastapi_getway:\n    # \u5bb9\u5668\u540d\u79f0\n    container_name: fastapi\n    # \u955c\u50cf\u540d\u79f0\n    image: fastapi\n    env_file: .env\n    networks:\n      - db_network\n      - web_network\n    # \u6784\u5efa\u955c\u50cf\n    build:\n      context: ./\n      dockerfile: Dockerfile\n    #build: .\n    # \u5c06\u5bb9\u5668\u8fd0\u884c\u5728\u7279\u6743\u6a21\u5f0f\u4e0b\uff0c\u610f\u5473\u7740\u5bb9\u5668\u5185\u7684\u8fdb\u7a0b\u5c06\u5177\n    # \u6709\u8bbf\u95ee\u5bbf\u4e3b\u673a\u7684\u6743\u9650\uff0c\u5305\u62ec\u6587\u4ef6\u7cfb\u7edf\u3001\u8bbe\u5907\u548c\u7cfb\u7edf\u529f\u80fd\u7b49\n    privileged: true\n    # \u6307\u5b9a\u5bb9\u5668\u4e2d\u8fd0\u884c\u7684\u7528\u6237\n    user: root\n    # \u542f\u52a8\u7b56\u7565\u4e3a\u59cb\u7ec8\u91cd\u542f\n    restart: always\n    # \u8bbe\u7f6e\u7f51\u7edc\u6a21\u5f0f\u4e3ahost\u6a21\u5f0f\n    network_mode: host\n    # \u7aef\u53e3\u6620\u5c04\n    ports:\n      - 8020:8020\n    # \u6587\u4ef6\u6302\u8f7d\n    volumes:\n      - ./:/data/apps\n      - ./uploads:/data/apps/uploads\n    # \u6267\u884c\u547d\u4ee4\n    command: python app.py runserver 0.0.0.0:8020 --noreload\n    # \u65e5\u5fd7\u914d\u7f6e\n    logging:\n      driver: \"json-file\"\n      options:\n        max-size: \"500m\"\n        max-file: \"10\"\n  # nginx\u670d\u52a1\n  nginx:\n    container_name: nginx\n    restart: always\n    image: \"nginx:latest\"\n    ports:\n      - \"5000:5000\"\n    volumes:\n      - ./nginx:/etc/nginx/conf.d\n    networks:\n      - web_network\n    depends_on:\n      - flask_api\n\n  # \u4e2d\u95f4\u4ef6\u670d\u52a1\n  mysql:\n    container_name: mysql\n    image: mysql:latest\n    restart: always\n    ports:\n      - \"3306:3306\"\n        # \u6570\u636e\u5377\u6302\u8f7d\n\nnetworks:\n  db_network:\n    driver: bridge\n  web_network:\n    driver: bridge\n\n
    "},{"location":"doc/build.html#nginx","title":"nginx","text":"
    ########### \u6bcf\u4e2a\u6307\u4ee4\u5fc5\u987b\u6709\u5206\u53f7\u7ed3\u675f\u3002#################\nuser administrator administrators; # \u914d\u7f6e\u7528\u6237\u6216\u7ec4\uff0c\u9ed8\u8ba4\u4e3anobody nobody\nworker_processes 2; # \u5141\u8bb8\u751f\u6210\u7684\u8fdb\u7a0b\u6570\uff0c\u9ed8\u8ba4\u4e3a1\npid /nginx/pid/nginx.pid; # \u6307\u5b9a Nginx \u8fdb\u7a0b\u8fd0\u884c\u6587\u4ef6\u5b58\u653e\u5730\u5740\nerror_log log/error.log debug; # \u5236\u5b9a\u65e5\u5fd7\u8def\u5f84\uff0c\u7ea7\u522b\u3002\u8fd9\u4e2a\u8bbe\u7f6e\u53ef\u4ee5\u653e\u5165\u5168\u5c40\u5757\u3001http\u5757\u3001server\u5757\uff0c\u7ea7\u522b\u4f9d\u6b21\u4e3a\uff1adebug|info|notice|warn|error|crit|alert|emerg\n\nevents {\n    accept_mutex on; # \u8bbe\u7f6e\u7f51\u7edc\u8fde\u63a5\u5e8f\u5217\u5316\uff0c\u9632\u6b62\u60ca\u7fa4\u73b0\u8c61\u53d1\u751f\uff0c\u9ed8\u8ba4\u4e3aon\n    multi_accept on; # \u8bbe\u7f6e\u4e00\u4e2a\u8fdb\u7a0b\u662f\u5426\u540c\u65f6\u63a5\u53d7\u591a\u4e2a\u7f51\u7edc\u8fde\u63a5\uff0c\u9ed8\u8ba4\u4e3aoff\n    use epoll; # \u4e8b\u4ef6\u9a71\u52a8\u6a21\u578b\uff0cselect|poll|kqueue|epoll|resig|/dev/poll|eventport\n    worker_connections 1024; # \u6700\u5927\u8fde\u63a5\u6570\uff0c\u9ed8\u8ba4\u4e3a512\n}\n\nhttp {\n    include mime.types; # \u6587\u4ef6\u6269\u5c55\u540d\u4e0e\u6587\u4ef6\u7c7b\u578b\u6620\u5c04\u8868\n    default_type application/octet-stream; # \u9ed8\u8ba4\u6587\u4ef6\u7c7b\u578b\uff0c\u9ed8\u8ba4\u4e3atext/plain\n\n    # \u53d6\u6d88\u670d\u52a1\u65e5\u5fd7\n    access_log off;\n\n    # \u81ea\u5b9a\u4e49\u65e5\u5fd7\u683c\u5f0f\n    log_format access '$remote_addr\u2013$remote_user [$time_local] $request $status $body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for';\n\n    # \u542f\u7528\u8bbf\u95ee\u65e5\u5fd7\n    access_log log/access.log access; # combined\u4e3a\u65e5\u5fd7\u683c\u5f0f\u7684\u9ed8\u8ba4\u503c\n\n    sendfile on; # \u5141\u8bb8sendfile\u65b9\u5f0f\u4f20\u8f93\u6587\u4ef6\uff0c\u9ed8\u8ba4\u4e3aoff\uff0c\u53ef\u4ee5\u5728http\u5757\u3001server\u5757\u3001location\u5757\n    sendfile_max_chunk 100k; # \u6bcf\u4e2a\u8fdb\u7a0b\u6bcf\u6b21\u8c03\u7528\u4f20\u8f93\u6570\u91cf\u4e0d\u80fd\u5927\u4e8e\u8bbe\u5b9a\u7684\u503c\uff0c\u9ed8\u8ba4\u4e3a0\uff0c\u5373\u4e0d\u8bbe\u4e0a\u9650\n    keepalive_timeout 65; # \u8fde\u63a5\u8d85\u65f6\u65f6\u95f4\uff0c\u9ed8\u8ba4\u4e3a75\u79d2\uff0c\u53ef\u4ee5\u5728http\u3001server\u3001location\u5757\n\n    # \u5b9a\u4e49\u4e0a\u6e38\u670d\u52a1\u5668\n    upstream mysvr {\n        server 127.0.0.1:7878;\n        server 192.168.10.121:3333 backup; # \u70ed\u5907\n    }\n\n    # \u9519\u8bef\u9875\n    error_page 404 https://www.baidu.com;\n\n    # \u5b9a\u4e49\u4e00\u4e2a server \u5757\n    server {\n        # \u5355\u8fde\u63a5\u8bf7\u6c42\u4e0a\u9650\u6b21\u6570\n        keepalive_requests 120;\n\n        # \u76d1\u542c\u7aef\u53e3\n        listen 4545;\n\n        # \u76d1\u542c\u5730\u5740\n        server_name 127.0.0.1;\n\n        # \u524d\u7aef\u4ee3\u7406\n        location / {\n    proxy_set_header Host $host;\n    root /web/front/;\n                proxy_set_header X-Real-IP $remote_addr;\n                proxy_set_header REMOTE-HOST $remote_addr;\n                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n    try_files $uri $uri/ /index.html;\n    index /index.html;\n        }\n\n        # \u540e\u7aef\u4ee3\u7406\n        location  /api/ {\n                proxy_set_header Host $host;\n                proxy_set_header X-Real-IP $remote_addr;\n                proxy_set_header REMOTE-HOST $remote_addr;\n                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n                add_header Access-Control-Allow-Methods *;\n                add_header Access-Control-Allow-Origin $http_origin;\n                proxy_pass http://127.0.0.1:8010/;\n        }\n    }\n}\n
    "},{"location":"doc/frontend.html","title":"\u524d\u7aef\u4ecb\u7ecd","text":"

    \u8fd9\u662f\u4e00\u4e2a\u57fa\u4e8eVue3\u7684Vite\u9879\u76ee\uff0c\u4f7f\u7528Vue3\u3001Vite\u3001TypeScript\u3001Pinia\u3001Vue-router\u3001Element Plus\u3001Axios\u7b49\u6846\u67b6\u3002

    npm init vue@latest \u521b\u5efa\u9879\u76ee cd frontend \u8fdb\u5165\u9879\u76ee npm install \u5b89\u88c5\u4f9d\u8d56 npm run dev \u542f\u52a8\u9879\u76ee

    "},{"location":"doc/frontend.html#ide","title":"\u63a8\u8350IDE\u8bbe\u7f6e","text":"

    VSCode + Volar (and disable Vetur).

    "},{"location":"doc/frontend.html#_2","title":"\u9879\u76ee\u914d\u7f6e","text":"

    \u67e5\u770b Vite Configuration Reference.

    "},{"location":"doc/frontend.html#_3","title":"\u9879\u76ee\u542f\u52a8","text":""},{"location":"doc/frontend.html#_4","title":"\u521d\u59cb\u5316\u4f9d\u8d56","text":"
    npm install\n
    "},{"location":"doc/frontend.html#_5","title":"\u542f\u52a8\u5f00\u53d1\u73af\u5883","text":"
    npm run dev\n
    "},{"location":"doc/frontend.html#_6","title":"\u6784\u5efa\u9879\u76ee","text":"
    npm run build\n
    "},{"location":"doc/frontend.html#_7","title":"\u9879\u76ee\u68c0\u67e5","text":"
    [ESLint](https://eslint.org/)\n\nnpm run lint\n
    "},{"location":"doc/mkdocs.html","title":"Markdown\u8f6c\u9759\u6001\u7f51\u7ad9\uff08mkdocs-material\u4f7f\u7528\uff09","text":""},{"location":"doc/mkdocs.html#_1","title":"\u5de5\u5177\u4ecb\u7ecd","text":""},{"location":"doc/mkdocs.html#_2","title":"\u5de5\u5177\u5b89\u88c5","text":"
    pip install mkdocs-material\n
    "},{"location":"doc/mkdocs.html#_3","title":"\u5de5\u5177\u4f7f\u7528","text":""},{"location":"doc/mkdocs.html#_4","title":"\u521b\u5efa\u9879\u76ee","text":"
    mkdocs new my_docs\n
    "},{"location":"doc/mkdocs.html#_5","title":"\u7f16\u8f91\u6784\u5efa\u6587\u6863","text":"
    theme:\n  name: material\n
    "},{"location":"doc/mkdocs.html#_6","title":"\u542f\u52a8\u670d\u52a1","text":"
    mkdocs serve\n
    "},{"location":"doc/mkdocs.html#_7","title":"\u6784\u5efa\u9759\u6001\u7ad9\u70b9","text":"
    mkdocs build\n
    "},{"location":"doc/mkdocs.html#_8","title":"\u83b7\u53d6\u5e2e\u52a9","text":"
    mkdocs -h\n
    "},{"location":"doc/mkdocs.html#_9","title":"\u751f\u6210\u6240\u6709\u4f9d\u8d56","text":"
    pip freeze > requirements.txt\n
    mkdocs\nmkdocs-include-markdown-plugin\nmkdocs-material #  \u5b89\u88c5\u4e3b\u9898\nmkdocs-material-extensions\nmkdocs-pdf-export-plugin\nmkdocs-minify-plugin # \u63d2\u4ef6\nmkdocs-git-revision-date-localized-plugin \n
    "}]} \ No newline at end of file +{"config":{"lang":["en"],"separator":"[\\s\\u200b\\u3000\\-\u3001\u3002\uff0c\uff0e\uff1f\uff01\uff1b]+","pipeline":["stemmer"]},"docs":[{"location":"index.html","title":"\u9879\u76ee\u6982\u8ff0","text":"Fastapi-Vue3-Admin v1.0.0 \u57fa\u4e8eFastapi-Vue-Admi\u524d\u540e\u7aef\u5206\u79bb\u7684\u5feb\u901f\u5f00\u53d1\u6846\u67b6"},{"location":"index.html#_1","title":"\ud83d\udcda \u9879\u76ee\u4ecb\u7ecd","text":"

    Fastapi-Vue3-Admin \u662f\u4e00\u5957\u5b8c\u5168\u5f00\u6e90\u7684\u5feb\u901f\u5f00\u53d1\u5e73\u53f0\uff0c\u63d0\u4f9b\u514d\u8d39\u4f7f\u7528\u3002\u5b83\u7ed3\u5408\u4e86\u73b0\u4ee3\u3001\u9ad8\u6027\u80fd\u7684\u6280\u672f\u6808\uff0c\u65e8\u5728\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u642d\u5efa\u9ad8\u8d28\u91cf\u7684\u4e2d\u540e\u53f0\u7cfb\u7edf\u3002\u9879\u76ee\u76ee\u5f55\u7ed3\u6784\u5982\u4e0b\uff1a

    my_demo_project/fastapi_project\n\u251c\u2500 backend        # \u540e\u7aef\u5de5\u7a0b\n\u251c\u2500 frontend       # \u524d\u7aef\u5de5\u7a0b\n\u251c\u2500 devops         # \u90e8\u7f72\u5de5\u7a0b\n\u251c\u2500 mkdocs         # \u6587\u6863\u5de5\u7a0b\n|\u2500 README.en.md   # \u82f1\u6587\u6587\u6863\n\u2514\u2500 README.md      # \u4e2d\u6587\u6587\u6863\n

    \u5982\u679c\u89c9\u5f97\u9879\u76ee\u4e0d\u9519\uff0c\u6b22\u8fce Star \u652f\u6301\uff01

    "},{"location":"index.html#_2","title":"\ud83c\udf7b \u9879\u76ee\u7279\u70b9","text":""},{"location":"index.html#_3","title":"\ud83d\udccc \u5185\u7f6e\u6a21\u5757","text":""},{"location":"index.html#_4","title":"\ud83c\udf6a \u8d26\u53f7\u4fe1\u606f","text":"\u8d26\u6237\u7c7b\u578b \u8d26\u53f7 \u5bc6\u7801 \u7ba1\u7406\u5458\u8d26\u6237 admin 123456 \u6f14\u793a\u8d26\u6237 demo 123456"},{"location":"index.html#_5","title":"\ud83d\udc77 \u5b89\u88c5\u548c\u4f7f\u7528","text":""},{"location":"index.html#_6","title":"\u7248\u672c\u8bf4\u660e","text":"\u7c7b\u578b \u6280\u672f\u6808 \u7248\u672c \u540e\u7aef Python 3.10 \u540e\u7aef FastAPI 0.109 \u524d\u7aef Node.js >= 20.0\uff08\u63a8\u8350\u4f7f\u7528\u6700\u65b0\u7248\uff09 \u524d\u7aef npm 16.14 \u524d\u7aef Vue3 3.3 \u6570\u636e\u5e93 MySQL 8.0 \uff08\u63a8\u8350\u4f7f\u7528\u6700\u65b0\u7248\uff09 \u6570\u636e\u5e93 PostgreSQL 14\uff08\u5176\u4ed6\u7248\u672c\u5747\u672a\u6d4b\u8bd5\uff09 \u6570\u636e\u5e93 MongoDB 8.0\uff08\u63a8\u8350\u4f7f\u7528\u6700\u65b0\u7248\uff09 \u4e2d\u95f4\u4ef6 Redis 7.0 \uff08\u63a8\u8350\u4f7f\u7528\u6700\u65b0\u7248\uff09"},{"location":"index.html#_7","title":"\u83b7\u53d6\u4ee3\u7801","text":"
    git clone https://gitee.com/tao__tao/fastapi_vue3_admin.git\n
    "},{"location":"index.html#_8","title":"\u540e\u7aef","text":"
    1. \u5b89\u88c5\u4f9d\u8d56

    shell cd backend pip3 install -r requirements.txt

    1. \u4fee\u6539\u9879\u76ee\u6570\u636e\u5e93\u914d\u7f6e\u4fe1\u606f \u5728app/config/.env.dev(.env.test\u3001.env.prod)\u6587\u4ef6\u4e2d\u7684DB_DRIVER\u6570\u636e\u5e93\u9a71\u52a8\u7c7b\u578b\uff0c\u4ee5\u53ca\u5bf9\u5e94\u7684\u6570\u636e\u5e93\u7684\u914d\u7f6e\u4fe1\u606f

    2. \u521b\u5efa\u540d\u4e3afastapi_vue_admin\u7684\u6570\u636e\u5e93

    3. \u521d\u59cb\u5316\u6570\u636e\u5e93\u6570\u636e

    shell # \u8fdb\u5165\u540e\u7aef\u6839\u76ee\u5f55 backend \u4e0b\u8fd0\u884c # \u8fd0\u884c\u547d\u4ee4\u540e\u4f1a\u81ea\u52a8\u751f\u6210\u6570\u636e\u5e93\u5185\u7684\u8868\u548c\u6570\u636e # \u5982\u5df2\u521d\u59cb\u5316\u6570\u636e\u5e93\u6570\u636e\uff0c\u6b64\u547d\u4ee4\u53ef\u4e0d\u6267\u884c python3 main.py init

    1. \u542f\u52a8

    shell # \u8fdb\u5165\u540e\u7aef\u6839\u76ee\u5f55 backend \u4e0b\u8fd0\u884c python3 main.py run # \u5982\u679c\u4f7f\u7528celery\u7ba1\u7406\u4efb\u52a1\uff0c\u9700\u8981\u53e6\u5916\u542f\u52a8celery \u542f\u52a8\u666e\u901a\u4efb\u52a1work: celery -A celery_app.celery_app worker --loglevel=info \u542f\u52a8\u5b9a\u65f6\u4efb\u52a1work: celery -A celery_app.celery_app beat --loglevel=info

    "},{"location":"index.html#_9","title":"\u524d\u7aef","text":"
    1. \u5b89\u88c5\u4f9d\u8d56

    shell cd frontend npm install

    1. \u8fd0\u884c

    shell npm run dev

    1. \u6253\u5305

    shell npm run build

    "},{"location":"index.html#_10","title":"\u8bbf\u95ee\u9879\u76ee","text":""},{"location":"index.html#_11","title":"\ud83d\udd27 \u6a21\u5757\u5c55\u793a","text":""},{"location":"index.html#_12","title":"\u767b\u9646","text":""},{"location":"index.html#_13","title":"\u4eea\u8868\u76d8","text":""},{"location":"index.html#_14","title":"\u83dc\u5355\u7ba1\u7406","text":""},{"location":"index.html#_15","title":"\u90e8\u95e8\u7ba1\u7406","text":""},{"location":"index.html#_16","title":"\u5c97\u4f4d\u7ba1\u7406","text":""},{"location":"index.html#_17","title":"\u89d2\u8272\u7ba1\u7406","text":""},{"location":"index.html#_18","title":"\u7528\u6237\u7ba1\u7406","text":""},{"location":"index.html#_19","title":"\u65e5\u5fd7\u7ba1\u7406","text":""},{"location":"index.html#_20","title":"\u914d\u7f6e\u7ba1\u7406","text":""},{"location":"index.html#_21","title":"\u5728\u7ebf\u7528\u6237\u7ba1\u7406","text":""},{"location":"index.html#_22","title":"\u670d\u52a1\u5668\u76d1\u63a7","text":""},{"location":"index.html#_23","title":"\u7f13\u5b58\u76d1\u63a7","text":""},{"location":"index.html#_24","title":"\u4efb\u52a1\u7ba1\u7406","text":""},{"location":"index.html#_25","title":"\u63a5\u53e3\u7ba1\u7406","text":""},{"location":"index.html#_26","title":"\u6587\u6863\u7ba1\u7406","text":""},{"location":"index.html#_27","title":"\u4e2a\u4eba\u4fe1\u606f","text":""},{"location":"index.html#_28","title":"\u5728\u7ebf\u6587\u6863","text":""},{"location":"index.html#_29","title":"\u2728 \u7279\u522b\u9e23\u8c22","text":"

    \u611f\u8c22\u4ee5\u4e0b\u9879\u76ee\u7684\u8d21\u732e\u548c\u652f\u6301\uff0c\u4f7f\u672c\u9879\u76ee\u5f97\u4ee5\u987a\u5229\u5b8c\u6210\uff1a

    "},{"location":"index.html#_30","title":"\ud83c\udfa8 \u5fae\u4fe1\u7fa4","text":"

    \u5728\u4e0b\u65b9\u4e3a\u7fa4\u4e8c\u7ef4\u7801\uff0c\u53ef\u4ee5\u7528\u4e8e\u6280\u672f\u4ea4\u6d41\uff0c\u4e5f\u53ef\u4ee5\u4e00\u8d77\u8ba8\u8bba\u5728\u9879\u76ee\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u5404\u79cd\u95ee\u9898\u3002\u771f\u5fc3\u5e0c\u671b\u5927\u5bb6\u4e00\u8d77\u4f18\u5316\u8be5\u9879\u76ee\uff0c\u79ef\u6781\u8ba8\u8bba\uff0c\u8ba9\u6211\u4eec\u4e00\u8d77\u62b1\u56e2\u53d6\u6696\uff01

    "},{"location":"index.html#_31","title":"\u7fa4\u4e8c\u7ef4\u7801","text":""},{"location":"doc/backend.html","title":"\u540e\u7aef\u4ecb\u7ecd","text":"

    \u8be5\u9879\u76ee\u662f\u4e00\u4e2a\u57fa\u4e8epython\u7684web\u670d\u52a1\u6846\u67b6\uff0c\u57fa\u4e8efastapi\u548csqlalchemy\u5b9e\u73b0\uff0c\u652f\u6301\u591a\u7248\u672c\u63a5\u53e3\uff0c\u652f\u6301swagger\u6587\u6863\uff0c\u652f\u6301redis\u7f13\u5b58\uff0c\u652f\u6301mysql\u6570\u636e\u5e93\uff0c\u652f\u6301mongodb\u6570\u636e\u5e93\uff0c\u652f\u6301celery\u4efb\u52a1\u961f\u5217\uff0c\u652f\u6301jwt\u8ba4\u8bc1\uff0c\u652f\u6301\u65e5\u5fd7\u8bb0\u5f55\uff0c\u652f\u6301\u63d2\u4ef6\u6269\u5c55\uff0c\u652f\u6301\u591a\u73af\u5883\u914d\u7f6e\uff0c\u652f\u6301uvicorn\u90e8\u7f72\uff0c\u652f\u6301gunicorn\u90e8\u7f72\uff0c\u652f\u6301docker\u90e8\u7f72\uff0c\u652f\u6301nginx\u90e8\u7f72\u3002

    "},{"location":"doc/backend.html#_2","title":"\u540e\u7aef","text":"
    1. \u5b89\u88c5\u4f9d\u8d56

    shell cd backend pip3 install -r requirements.txt

    1. \u4fee\u6539\u9879\u76ee\u6570\u636e\u5e93\u914d\u7f6e\u4fe1\u606f \u5728app/core/config.py\u6587\u4ef6\u4e2d\u7684SQLALCHEMY_DATABASE_URI\u3001MONGO_DB_URL\u3001REDIS_URL

    2. \u521b\u5efa\u540d\u4e3afastapi_vue_admin\u7684\u6570\u636e\u5e93

    3. \u521d\u59cb\u5316\u6570\u636e\u5e93\u6570\u636e

    shell # \u8fdb\u5165\u540e\u7aef\u6839\u76ee\u5f55 backend \u4e0b\u8fd0\u884c # \u8fd0\u884c\u547d\u4ee4\u540e\u4f1a\u81ea\u52a8\u751f\u6210\u6570\u636e\u5e93\u5185\u7684\u8868\u548c\u6570\u636e # \u5982\u5df2\u521d\u59cb\u5316\u6570\u636e\u5e93\u6570\u636e\uff0c\u6b64\u547d\u4ee4\u53ef\u4e0d\u6267\u884c python3 main.py init

    1. \u542f\u52a8

    shell # \u8fdb\u5165\u540e\u7aef\u6839\u76ee\u5f55 backend \u4e0b\u8fd0\u884c python3 main.py run

    "},{"location":"doc/build.html","title":"\u90e8\u7f72\u4ecb\u7ecd","text":""},{"location":"doc/build.html#docker","title":"docker","text":"
    # \u4f7f\u7528\u5b98\u65b9\u7684 Python 3.10 \u955c\u50cf\u4f5c\u4e3a\u57fa\u7840\u955c\u50cf\nFROM python:3.10\n# \u4f7f\u7528 LABEL \u66ff\u4ee3 MAINTAINER\nLABEL maintainer=\"\u7ba1\u7406\u5458\"\n# \u8bbe\u7f6e python \u73af\u5883\u53d8\u91cf\nENV PYTHONUNBUFFERED 1\nENV PYTHONDONTWRITEBYTECODE 1\n# \u8bbe\u7f6e\u65f6\u533a\nENV TZ Asia/Shanghai\n\n# \u5347\u7ea7pip\u7248\u672c\n# RUN python -m pip install --upgrade pip\n\n# \u521b\u5efa\u5bb9\u5668\u5de5\u4f5c\u76ee\u5f55\nRUN mkdir -p /opt/fastapi_project\n# \u8bbe\u7f6e\u5bb9\u5668\u5185\u5de5\u4f5c\u76ee\u5f55\nWORKDIR /opt/fastapi_project\n# \u5c06\u5f53\u524d\u4e3b\u673a\u76ee\u5f55\u5168\u90e8\u6587\u4ef6\u590d\u5236\u81f3\u5bb9\u5668\u5de5\u4f5c\u76ee\u5f55\nCOPY ./requirements.txt /code/requirements.txt\n# \u5b89\u88c5\u4f9d\u8d56\nRUN pip install --no-cache-dir --upgrade -r /opt/fastapiproject/backend/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple\n\n# \u90e8\u7f72 nginx\nRUN apt-get update && apt-get install -y nginx\nRUN rm /etc/nginx/sites-enabled/default\nCOPY nginx.conf /etc/nginx/sites-available/\nRUN ln -s /etc/nginx/sites-available/nginx.conf /etc/nginx/sites-enabled/\nRUN echo \"daemon off;\" >> /etc/nginx/nginx.conf\n\n# # \u90e8\u7f72mysql\n# RUN apt-get install -y mysql-server\n\n# # \u90e8\u7f72redis\n# RUN apt-get install -y redis-server\n\n# # \u90e8\u7f72mongo\n# RUN apt-get install -y mongodb\n\n\n#CMD \u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0cdaemon off\u540e\u53f0\u8fd0\u884c\uff0c\u5426\u5219\u542f\u52a8\u5b8c\u5c31\u81ea\u52a8\u5173\u95ed\nCMD [\"nginx\", \"-g\", \"daemon off;\"]  \n\nCMD [\"uvicorn\", \"app.main:app\", \"--host\", \"0.0.0.0\", \"--port\", \"80\"]\n# \u66b4\u9732\u7aef\u53e3\nEXPOSE 8000\n# python main.py run \u6216\u8005 uvicorn main:create_app --host 0.0.0.0 --port 8000 --workers 4\nENTRYPOINT [\"uvicorn\", \"backend.main:create_app\", \"--host\", \"0.0.0.0\", \"--port\", \"8000\", \"--workers\", 4]\n# ENTRYPOINT [\"gunicorn\", \"-c\", \"gunicorn.py\", \"main:create_app\"]\n\n
    "},{"location":"doc/build.html#docker-componse","title":"docker-componse","text":"
    version: \"3.10.11\"\n\n# \u5e94\u7528\u670d\u52a1\nservices:\n  # \u5e94\u7528\u670d\u52a1\n  fastapi_getway:\n    # \u5bb9\u5668\u540d\u79f0\n    container_name: fastapi\n    # \u955c\u50cf\u540d\u79f0\n    image: fastapi\n    env_file: .env\n    networks:\n      - db_network\n      - web_network\n    # \u6784\u5efa\u955c\u50cf\n    build:\n      context: ./\n      dockerfile: Dockerfile\n    #build: .\n    # \u5c06\u5bb9\u5668\u8fd0\u884c\u5728\u7279\u6743\u6a21\u5f0f\u4e0b\uff0c\u610f\u5473\u7740\u5bb9\u5668\u5185\u7684\u8fdb\u7a0b\u5c06\u5177\n    # \u6709\u8bbf\u95ee\u5bbf\u4e3b\u673a\u7684\u6743\u9650\uff0c\u5305\u62ec\u6587\u4ef6\u7cfb\u7edf\u3001\u8bbe\u5907\u548c\u7cfb\u7edf\u529f\u80fd\u7b49\n    privileged: true\n    # \u6307\u5b9a\u5bb9\u5668\u4e2d\u8fd0\u884c\u7684\u7528\u6237\n    user: root\n    # \u542f\u52a8\u7b56\u7565\u4e3a\u59cb\u7ec8\u91cd\u542f\n    restart: always\n    # \u8bbe\u7f6e\u7f51\u7edc\u6a21\u5f0f\u4e3ahost\u6a21\u5f0f\n    network_mode: host\n    # \u7aef\u53e3\u6620\u5c04\n    ports:\n      - 8020:8020\n    # \u6587\u4ef6\u6302\u8f7d\n    volumes:\n      - ./:/data/apps\n      - ./uploads:/data/apps/uploads\n    # \u6267\u884c\u547d\u4ee4\n    command: python app.py runserver 0.0.0.0:8020 --noreload\n    # \u65e5\u5fd7\u914d\u7f6e\n    logging:\n      driver: \"json-file\"\n      options:\n        max-size: \"500m\"\n        max-file: \"10\"\n  # nginx\u670d\u52a1\n  nginx:\n    container_name: nginx\n    restart: always\n    image: \"nginx:latest\"\n    ports:\n      - \"5000:5000\"\n    volumes:\n      - ./nginx:/etc/nginx/conf.d\n    networks:\n      - web_network\n    depends_on:\n      - flask_api\n\n  # \u4e2d\u95f4\u4ef6\u670d\u52a1\n  mysql:\n    container_name: mysql\n    image: mysql:latest\n    restart: always\n    ports:\n      - \"3306:3306\"\n        # \u6570\u636e\u5377\u6302\u8f7d\n\nnetworks:\n  db_network:\n    driver: bridge\n  web_network:\n    driver: bridge\n\n
    "},{"location":"doc/build.html#nginx","title":"nginx","text":"
    ########### \u6bcf\u4e2a\u6307\u4ee4\u5fc5\u987b\u6709\u5206\u53f7\u7ed3\u675f\u3002#################\nuser administrator administrators; # \u914d\u7f6e\u7528\u6237\u6216\u7ec4\uff0c\u9ed8\u8ba4\u4e3anobody nobody\nworker_processes 2; # \u5141\u8bb8\u751f\u6210\u7684\u8fdb\u7a0b\u6570\uff0c\u9ed8\u8ba4\u4e3a1\npid /nginx/pid/nginx.pid; # \u6307\u5b9a Nginx \u8fdb\u7a0b\u8fd0\u884c\u6587\u4ef6\u5b58\u653e\u5730\u5740\nerror_log log/error.log debug; # \u5236\u5b9a\u65e5\u5fd7\u8def\u5f84\uff0c\u7ea7\u522b\u3002\u8fd9\u4e2a\u8bbe\u7f6e\u53ef\u4ee5\u653e\u5165\u5168\u5c40\u5757\u3001http\u5757\u3001server\u5757\uff0c\u7ea7\u522b\u4f9d\u6b21\u4e3a\uff1adebug|info|notice|warn|error|crit|alert|emerg\n\nevents {\n    accept_mutex on; # \u8bbe\u7f6e\u7f51\u7edc\u8fde\u63a5\u5e8f\u5217\u5316\uff0c\u9632\u6b62\u60ca\u7fa4\u73b0\u8c61\u53d1\u751f\uff0c\u9ed8\u8ba4\u4e3aon\n    multi_accept on; # \u8bbe\u7f6e\u4e00\u4e2a\u8fdb\u7a0b\u662f\u5426\u540c\u65f6\u63a5\u53d7\u591a\u4e2a\u7f51\u7edc\u8fde\u63a5\uff0c\u9ed8\u8ba4\u4e3aoff\n    use epoll; # \u4e8b\u4ef6\u9a71\u52a8\u6a21\u578b\uff0cselect|poll|kqueue|epoll|resig|/dev/poll|eventport\n    worker_connections 1024; # \u6700\u5927\u8fde\u63a5\u6570\uff0c\u9ed8\u8ba4\u4e3a512\n}\n\nhttp {\n    include mime.types; # \u6587\u4ef6\u6269\u5c55\u540d\u4e0e\u6587\u4ef6\u7c7b\u578b\u6620\u5c04\u8868\n    default_type application/octet-stream; # \u9ed8\u8ba4\u6587\u4ef6\u7c7b\u578b\uff0c\u9ed8\u8ba4\u4e3atext/plain\n\n    # \u53d6\u6d88\u670d\u52a1\u65e5\u5fd7\n    access_log off;\n\n    # \u81ea\u5b9a\u4e49\u65e5\u5fd7\u683c\u5f0f\n    log_format access '$remote_addr\u2013$remote_user [$time_local] $request $status $body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for';\n\n    # \u542f\u7528\u8bbf\u95ee\u65e5\u5fd7\n    access_log log/access.log access; # combined\u4e3a\u65e5\u5fd7\u683c\u5f0f\u7684\u9ed8\u8ba4\u503c\n\n    sendfile on; # \u5141\u8bb8sendfile\u65b9\u5f0f\u4f20\u8f93\u6587\u4ef6\uff0c\u9ed8\u8ba4\u4e3aoff\uff0c\u53ef\u4ee5\u5728http\u5757\u3001server\u5757\u3001location\u5757\n    sendfile_max_chunk 100k; # \u6bcf\u4e2a\u8fdb\u7a0b\u6bcf\u6b21\u8c03\u7528\u4f20\u8f93\u6570\u91cf\u4e0d\u80fd\u5927\u4e8e\u8bbe\u5b9a\u7684\u503c\uff0c\u9ed8\u8ba4\u4e3a0\uff0c\u5373\u4e0d\u8bbe\u4e0a\u9650\n    keepalive_timeout 65; # \u8fde\u63a5\u8d85\u65f6\u65f6\u95f4\uff0c\u9ed8\u8ba4\u4e3a75\u79d2\uff0c\u53ef\u4ee5\u5728http\u3001server\u3001location\u5757\n\n    # \u5b9a\u4e49\u4e0a\u6e38\u670d\u52a1\u5668\n    upstream mysvr {\n        server 127.0.0.1:7878;\n        server 192.168.10.121:3333 backup; # \u70ed\u5907\n    }\n\n    # \u9519\u8bef\u9875\n    error_page 404 https://www.baidu.com;\n\n    # \u5b9a\u4e49\u4e00\u4e2a server \u5757\n    server {\n        # \u5355\u8fde\u63a5\u8bf7\u6c42\u4e0a\u9650\u6b21\u6570\n        keepalive_requests 120;\n\n        # \u76d1\u542c\u7aef\u53e3\n        listen 4545;\n\n        # \u76d1\u542c\u5730\u5740\n        server_name 127.0.0.1;\n\n        # \u524d\u7aef\u4ee3\u7406\n        location / {\n    proxy_set_header Host $host;\n    root /web/front/;\n                proxy_set_header X-Real-IP $remote_addr;\n                proxy_set_header REMOTE-HOST $remote_addr;\n                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n    try_files $uri $uri/ /index.html;\n    index /index.html;\n        }\n\n        # \u540e\u7aef\u4ee3\u7406\n        location  /api/ {\n                proxy_set_header Host $host;\n                proxy_set_header X-Real-IP $remote_addr;\n                proxy_set_header REMOTE-HOST $remote_addr;\n                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n                add_header Access-Control-Allow-Methods *;\n                add_header Access-Control-Allow-Origin $http_origin;\n                proxy_pass http://127.0.0.1:8010/;\n        }\n    }\n}\n
    "},{"location":"doc/frontend.html","title":"\u524d\u7aef\u4ecb\u7ecd","text":"

    \u8fd9\u662f\u4e00\u4e2a\u57fa\u4e8eVue3\u7684Vite\u9879\u76ee\uff0c\u4f7f\u7528Vue3\u3001Vite\u3001TypeScript\u3001Pinia\u3001Vue-router\u3001Element Plus\u3001Axios\u7b49\u6846\u67b6\u3002

    npm init vue@latest \u521b\u5efa\u9879\u76ee cd frontend \u8fdb\u5165\u9879\u76ee npm install \u5b89\u88c5\u4f9d\u8d56 npm run dev \u542f\u52a8\u9879\u76ee

    "},{"location":"doc/frontend.html#ide","title":"\u63a8\u8350IDE\u8bbe\u7f6e","text":"

    VSCode + Volar (and disable Vetur).

    "},{"location":"doc/frontend.html#_2","title":"\u9879\u76ee\u914d\u7f6e","text":"

    \u67e5\u770b Vite Configuration Reference.

    "},{"location":"doc/frontend.html#_3","title":"\u9879\u76ee\u542f\u52a8","text":""},{"location":"doc/frontend.html#_4","title":"\u521d\u59cb\u5316\u4f9d\u8d56","text":"
    npm install\n
    "},{"location":"doc/frontend.html#_5","title":"\u542f\u52a8\u5f00\u53d1\u73af\u5883","text":"
    npm run dev\n
    "},{"location":"doc/frontend.html#_6","title":"\u6784\u5efa\u9879\u76ee","text":"
    npm run build\n
    "},{"location":"doc/frontend.html#_7","title":"\u9879\u76ee\u68c0\u67e5","text":"
    [ESLint](https://eslint.org/)\n\nnpm run lint\n
    "},{"location":"doc/mkdocs.html","title":"Markdown\u8f6c\u9759\u6001\u7f51\u7ad9\uff08mkdocs-material\u4f7f\u7528\uff09","text":""},{"location":"doc/mkdocs.html#_1","title":"\u5de5\u5177\u4ecb\u7ecd","text":""},{"location":"doc/mkdocs.html#_2","title":"\u5de5\u5177\u5b89\u88c5","text":"
    pip install mkdocs-material\n
    "},{"location":"doc/mkdocs.html#_3","title":"\u5de5\u5177\u4f7f\u7528","text":""},{"location":"doc/mkdocs.html#_4","title":"\u521b\u5efa\u9879\u76ee","text":"
    mkdocs new my_docs\n
    "},{"location":"doc/mkdocs.html#_5","title":"\u7f16\u8f91\u6784\u5efa\u6587\u6863","text":"
    theme:\n  name: material\n
    "},{"location":"doc/mkdocs.html#_6","title":"\u542f\u52a8\u670d\u52a1","text":"
    mkdocs serve\n
    "},{"location":"doc/mkdocs.html#_7","title":"\u6784\u5efa\u9759\u6001\u7ad9\u70b9","text":"
    mkdocs build\n
    "},{"location":"doc/mkdocs.html#_8","title":"\u83b7\u53d6\u5e2e\u52a9","text":"
    mkdocs -h\n
    "},{"location":"doc/mkdocs.html#_9","title":"\u751f\u6210\u6240\u6709\u4f9d\u8d56","text":"
    pip freeze > requirements.txt\n
    mkdocs\nmkdocs-include-markdown-plugin\nmkdocs-material #  \u5b89\u88c5\u4e3b\u9898\nmkdocs-material-extensions\nmkdocs-pdf-export-plugin\nmkdocs-minify-plugin # \u63d2\u4ef6\nmkdocs-git-revision-date-localized-plugin \n
    "}]} \ No newline at end of file diff --git a/frontend/public/site/sitemap.xml b/frontend/public/site/sitemap.xml index c83a2291..94c9e97f 100644 --- a/frontend/public/site/sitemap.xml +++ b/frontend/public/site/sitemap.xml @@ -2,22 +2,22 @@ http://127.0.0.1:8888/index.html - 2025-02-23 + 2025-02-24 http://127.0.0.1:8888/doc/backend.html - 2025-02-23 + 2025-02-24 http://127.0.0.1:8888/doc/build.html - 2025-02-23 + 2025-02-24 http://127.0.0.1:8888/doc/frontend.html - 2025-02-23 + 2025-02-24 http://127.0.0.1:8888/doc/mkdocs.html - 2025-02-23 + 2025-02-24 \ No newline at end of file diff --git a/frontend/public/site/sitemap.xml.gz b/frontend/public/site/sitemap.xml.gz index 3fbdb1e13b8c21bfc82af28e551d5fe16c19e71f..8109922281fc720ebb24831fa9c263ae13ee4abe 100644 GIT binary patch delta 29 lcmaFB_<)gJzMF%iVcYJB>~f4E6V*0x2*#$D>|kPG0054i2($nI delta 29 lcmaFB_<)gJzMF%CA$8Y8b~#4DiE5iTHf