diff --git a/.idea/FilesReadSysteam.iml b/.idea/FilesReadSysteam.iml index 07abf20..cb9d287 100644 --- a/.idea/FilesReadSysteam.iml +++ b/.idea/FilesReadSysteam.iml @@ -2,7 +2,7 @@ - + diff --git a/.idea/misc.xml b/.idea/misc.xml index db8786c..c0a260b 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,5 +3,5 @@ - + \ No newline at end of file diff --git a/backend/.env.example b/backend/.env.example index 8b4ebf1..42a91c6 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -4,6 +4,7 @@ DEBUG=true # 数据库 MONGODB_URL="mongodb://username:password@host:port" +MONGODB_DB_NAME="" REDIS_URL="redis://localhost:6379/0" # 大模型 API diff --git a/backend/app/__pycache__/main.cpython-312.pyc b/backend/app/__pycache__/main.cpython-312.pyc index 9ae741b..2aed103 100644 Binary files a/backend/app/__pycache__/main.cpython-312.pyc and b/backend/app/__pycache__/main.cpython-312.pyc differ diff --git a/backend/app/instruction/__init__.py b/backend/app/instruction/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/backend/app/instruction/executor.py b/backend/app/instruction/executor.py new file mode 100644 index 0000000..e69de29 diff --git a/backend/app/instruction/intent_parser.py b/backend/app/instruction/intent_parser.py new file mode 100644 index 0000000..e69de29 diff --git a/backend/app/main.py b/backend/app/main.py index acece94..080e5ac 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -5,7 +5,6 @@ app = FastAPI( title=settings.APP_NAME, openapi_url=f"{settings.API_V1_STR}/openapi.json" ) - @app.get("/") async def root(): return { diff --git a/backend/image/image-1.png b/backend/image/image-1.png new file mode 100644 index 0000000..628c6d6 Binary files /dev/null and b/backend/image/image-1.png differ diff --git a/backend/image/image-2.png b/backend/image/image-2.png new file mode 100644 index 0000000..f228747 Binary files /dev/null and b/backend/image/image-2.png differ diff --git a/backend/image/image.png b/backend/image/image.png new file mode 100644 index 0000000..7de0179 Binary files /dev/null and b/backend/image/image.png differ diff --git a/backend/readme.md b/backend/readme.md index a72b681..c142ff8 100644 --- a/backend/readme.md +++ b/backend/readme.md @@ -52,6 +52,18 @@ settings.json内容如下: ``` 保存即可 +或者点击python解释器 +![](image/image.png) + +如果你完成了上述setting.json的配置,可以直接选择第三个使用 xxx 设置中的python xxx +否则点击箭头指示的输入解释器路径 +![](image/image-1.png) + +找到你项目路径的\venv\Scripts\python.exe +![alt text](image\image-2.png) + 例如我的:H:\OwnProject\FilesReadSysteam\backend\venv\Scripts\python.exe (记得加上这个.exe) +输入进去即可 + ## 关于.gitignore 为了在上传git仓库时,不把venv中的软件包和其他关于项目的特殊api key暴露,请将.gitignore文件放在项目根目录下,并添加以下内容: ```bash @@ -70,7 +82,28 @@ settings.json内容如下: 为了数据安全,请不要把api key暴露,请将api key保存在.env文件中,并添加到.gitignore中(正如前文所示),这样git就不会将api key上传到git仓库中。 但,可以保留.env.example文件,以示需要调用的api key -### 预计项目结构: +## 关于git账户 +```bash +#全局设置 +git config --global user.name "你的名字" +git config --global user.email "你的邮箱@example.com" + +#单个项目设置 +cd 你的项目路径 +git config user.name "你的项目专用名字" +git config user.email "你的项目专用邮箱@example.com" + +#验证 +git config --list #查看所有配置 + +git config user.name #查看单条 +git config user.email #同上 + +#如果想看全局的,可以加上 --global,例如 git config --global user.name +``` + +## 预计项目结构: + ```bash FilesReadSystem/ ├── backend/ # 后端服务(Python + FastAPI)