Skip to content

Commit

Permalink
Add OAuth2 source link
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-clan committed Mar 15, 2024
1 parent 3b82421 commit d4cdd49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,20 +173,14 @@ Initialize the test data using the `backend/sql/init_test_data.sql` file

## Development process

For reference only

### BackEnd
(For reference only)

1. Define the database model (model) and remember to perform database migration for each change
2. Define the data validation model (schema)
3. Define routes (router) and views (api)
4. Define the business logic (service)
5. Write database operations (crud)

### Front

Go to [fastapi_best_architecture_ui](https://github.com/fastapi-practices/fastapi_best_architecture_ui) for details

## Test

Execute unittests via pytest
Expand Down
8 changes: 1 addition & 7 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,20 +166,14 @@ mvc 架构作为常规设计模式,在 python web 中也很常见,但是三

## 开发流程

仅供参考

### 后端:
(仅供参考)

1. 定义数据库模型(model),每次变化记得执行数据库迁移
2. 定义数据验证模型(schema)
3. 定义路由(router)和视图(api)
4. 定义业务逻辑(service)
5. 编写数据库操作(crud)

### 前端

跳转 [fastapi_best_architecture_ui](https://github.com/fastapi-practices/fastapi_best_architecture_ui) 查看详情

## 测试

通过 pytest 执行单元测试
Expand Down
2 changes: 1 addition & 1 deletion backend/app/core/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Settings(BaseSettings):
# Env Opera Log
OPERA_LOG_ENCRYPT_SECRET_KEY: str # 密钥 os.urandom(32), 需使用 bytes.hex() 方法转换为 str

# OAuth2
# OAuth2:https://github.com/fastapi-practices/fastapi_oauth20
OAUTH2_GITHUB_CLIENT_ID: str
OAUTH2_GITHUB_CLIENT_SECRET: str

Expand Down

0 comments on commit d4cdd49

Please sign in to comment.