更新git相关配置
This commit is contained in:
2
.idea/FilesReadSysteam.iml
generated
2
.idea/FilesReadSysteam.iml
generated
@@ -2,7 +2,7 @@
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="jdk" jdkName="Python 3.12" jdkType="Python SDK" />
|
||||
<orderEntry type="jdk" jdkName="Python 3.12 virtualenv at H:\OwnProject\FilesReadSysteam\backend\venv" jdkType="Python SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
<component name="PyDocumentationSettings">
|
||||
|
||||
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@@ -3,5 +3,5 @@
|
||||
<component name="Black">
|
||||
<option name="sdkName" value="Python 3.12" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12" project-jdk-type="Python SDK" />
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 virtualenv at H:\OwnProject\FilesReadSysteam\backend\venv" project-jdk-type="Python SDK" />
|
||||
</project>
|
||||
@@ -4,6 +4,7 @@ DEBUG=true
|
||||
|
||||
# 数据库
|
||||
MONGODB_URL="mongodb://username:password@host:port"
|
||||
MONGODB_DB_NAME=""
|
||||
REDIS_URL="redis://localhost:6379/0"
|
||||
|
||||
# 大模型 API
|
||||
|
||||
Binary file not shown.
0
backend/app/instruction/__init__.py
Normal file
0
backend/app/instruction/__init__.py
Normal file
0
backend/app/instruction/executor.py
Normal file
0
backend/app/instruction/executor.py
Normal file
0
backend/app/instruction/intent_parser.py
Normal file
0
backend/app/instruction/intent_parser.py
Normal file
@@ -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 {
|
||||
|
||||
BIN
backend/image/image-1.png
Normal file
BIN
backend/image/image-1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 259 KiB |
BIN
backend/image/image-2.png
Normal file
BIN
backend/image/image-2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 206 KiB |
BIN
backend/image/image.png
Normal file
BIN
backend/image/image.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 167 KiB |
@@ -52,6 +52,18 @@ settings.json内容如下:
|
||||
```
|
||||
保存即可
|
||||
|
||||
或者点击python解释器
|
||||

|
||||
|
||||
如果你完成了上述setting.json的配置,可以直接选择第三个使用 xxx 设置中的python xxx
|
||||
否则点击箭头指示的输入解释器路径
|
||||

|
||||
|
||||
找到你项目路径的\venv\Scripts\python.exe
|
||||

|
||||
例如我的: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)
|
||||
|
||||
Reference in New Issue
Block a user