Skip to content

Commit

Permalink
Merge branch 'main' into user-create
Browse files Browse the repository at this point in the history
  • Loading branch information
oortclwd committed Apr 17, 2022
2 parents 5618c48 + a37d525 commit b432470
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ ENV/
env.bak/
venv.bak/
.vscode/

# Spyder project settings
.spyderproject
.spyproject
Expand Down
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,24 @@ CAFE-SEARCH-CSB
├─ README.MD
├─ requirements.txt
└─backend/
├─apis
│ ├─version1
├─apis/
│ ├─version1/
│ │ └─ route_users.py
│ └─ base.py
├─core
├─core/
│ └─ config.py
├─db
│ ├─logics
├─db/
│ ├─logics/
│ │ └─users.py
│ ├─models
│ ├─models/
│ │ └─users.py
│ ├─base.py
│ ├─base_class.py
─session.py
├─schemas
─session.py
├─schemas/
│ └─users.py
└─tests
└─
└─tests/
│ └─conftest.py
└─test_routes/
└─test_users.py
```
1 change: 0 additions & 1 deletion backend/apis/version1/route_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ def login_for_access_token(
data={"user_email":user.email}, expires_delta=access_token_expires
)
return {"access_token": access_token, "token_type": "bearer"}

1 change: 0 additions & 1 deletion backend/core/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from functools import lru_cache
from pydantic import BaseSettings, SecretStr

from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions backend/db/models/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from db.base_class import Base

from sqlalchemy import Column, Integer, DateTime, func

class BaseMixin:
Expand Down
2 changes: 1 addition & 1 deletion backend/schemas/tokens.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pydantic import BaseModel
from pydantic import BaseModel, EmailStr

class Token(BaseModel):
access_token: str
Expand Down
10 changes: 9 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
fastapi
uvicorn
sqlalchemy

pydantic
pydantic[email, dotenv]
pymysql
pymysql
pydantic[dotenv]
sqlalchemy
fastapi
requests
pytest
uvicorn[standard]
python-jose[cryptography]
passlib[bcrypt]

0 comments on commit b432470

Please sign in to comment.