Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Full-Stack-FastAPI-React-and-MongoDB-2nd-Edition
/ functions
Functions
142 in github.com/PacktPublishing/Full-Stack-FastAPI-React-and-MongoDB-2nd-Edition
⨍
Functions
142
◇
Types & classes
46
↳
Endpoints
44
↓ 5 callers
Function
getSession
()
Chapter10/src/actions.js:8
↓ 4 callers
Function
useAuth
()
Chapter06/frontend/src/AuthContext.jsx:98
↓ 4 callers
Function
useAuth
()
Chapter08/src/hooks/useAuth.jsx:4
↓ 3 callers
Function
register
(newUser: RegisterUser = Body(...), response_model=User)
Chapter09/routers/user.py:16
↓ 2 callers
Function
handleSubmit
(e)
Chapter06/frontend/src/Login.jsx:9
↓ 1 callers
Function
Header
()
Chapter05/frontend/src/components/Header.jsx:1
↓ 1 callers
Function
count_users
(users: list[str])
Chapter03/chapter3_01.py:9
↓ 1 callers
Method
decode_token
(self, token)
Chapter07/backend/authentication.py:29
↓ 1 callers
Method
decode_token
Decode a JWT token and return the user ID and username if valid. Args: token (str): The JWT token. Raises:
Chapter06/backend/authentication.py:62
↓ 1 callers
Method
decode_token
(self, token)
Chapter09/authentication.py:29
↓ 1 callers
Method
encode_token
(self, user_id, username)
Chapter07/backend/authentication.py:20
↓ 1 callers
Method
encode_token
Encode a token for the given user ID and username using JWT with the specified payload and secret key. Args: user_id (in
Chapter06/backend/authentication.py:43
↓ 1 callers
Method
encode_token
(self, user_id, username)
Chapter09/authentication.py:20
↓ 1 callers
Function
fetchCarData
(id)
Chapter08/src/utils/fetchCarData.js:1
↓ 1 callers
Function
fetchUsers
()
Chapter06/frontend/src/Users.jsx:10
↓ 1 callers
Function
fetchUsers
()
Chapter05/frontend/src/App3.jsx:7
↓ 1 callers
Function
format_datetime
(dt: datetime)
Chapter03/chapter3_03.py:4
↓ 1 callers
Function
generate_email
()
Chapter09/background.py:59
↓ 1 callers
Function
generate_prompt
(brand: str, model: str, year: int)
Chapter09/background.py:17
↓ 1 callers
Method
get_password_hash
(self, password)
Chapter07/backend/authentication.py:14
↓ 1 callers
Method
get_password_hash
Returns the hashed password using the provided password string. Args: password (str): The password string to be hashed.
Chapter06/backend/authentication.py:18
↓ 1 callers
Method
get_password_hash
(self, password)
Chapter09/authentication.py:14
↓ 1 callers
Function
init_db
()
Chapter09/database.py:10
↓ 1 callers
Function
login
(username, password)
Chapter06/frontend/src/AuthContext.jsx:60
↓ 1 callers
Function
login
(username, password)
Chapter08/src/contexts/AuthContext.jsx:56
↓ 1 callers
Function
print_name_x_times
(name: str, times: int)
Chapter03/chapter3_01.py:1
↓ 1 callers
Function
register
(username, password)
Chapter06/frontend/src/AuthContext.jsx:36
↓ 1 callers
Function
square_numbers
(numbers: List[int])
Chapter03/chapter3_02.py:4
↓ 1 callers
Method
verify_password
(self, plain_password, hashed_password)
Chapter07/backend/authentication.py:17
↓ 1 callers
Method
verify_password
Verify the given plain password matches the hashed password. Args: plain_password (str): The plain text password to veri
Chapter06/backend/authentication.py:30
↓ 1 callers
Method
verify_password
(self, plain_password, hashed_password)
Chapter09/authentication.py:17
Function
App
()
Chapter06/frontend/src/App.jsx:9
Function
App
()
Chapter05/frontend/src/App2.jsx:6
Function
App
()
Chapter05/frontend/src/App3.jsx:2
Function
App
()
Chapter05/frontend/src/App.jsx:3
Function
App
()
Chapter08/src/App.jsx:44
Function
AuthProvider
({ children })
Chapter06/frontend/src/AuthContext.jsx:6
Function
AuthProvider
({ children })
Chapter08/src/contexts/AuthContext.jsx:7
Function
AuthRequired
()
Chapter08/src/components/AuthRequired.jsx:5
Function
Button
()
Chapter05/frontend/src/components/Button.jsx:1
Function
CarCard
({ car })
Chapter08/src/components/CarCard.jsx:4
Function
CarDetails
({ params })
Chapter10/src/app/cars/[id]/page.js:27
Function
CarForm
()
Chapter08/src/components/CarForm.jsx:27
Function
Card
({ car: { name, year, model, price } })
Chapter05/frontend/src/components/Card.jsx:1
Function
Cars
()
Chapter10/src/app/cars/page.js:2
Function
Cars
()
Chapter08/src/pages/Cars.jsx:3
Function
Home
()
Chapter10/src/app/page.js:1
Function
Home
()
Chapter08/src/pages/Home.jsx:1
Function
InputField
({ props })
Chapter10/src/components/InputField.js:2
Function
InputField
({ props })
Chapter08/src/components/InputField.jsx:2
Function
Login
()
Chapter06/frontend/src/Login.jsx:4
Function
Login
()
Chapter08/src/pages/Login.jsx:2
Function
LoginForm
()
Chapter10/src/components/LoginForm.js:5
Function
LoginForm
()
Chapter08/src/components/LoginForm.jsx:15
Function
LogoutForm
()
Chapter10/src/components/LogoutForm.js:3
Function
Message
()
Chapter06/frontend/src/Message.jsx:2
Function
Navbar
()
Chapter10/src/components/Navbar.js:5
Function
NewCar
()
Chapter08/src/pages/NewCar.jsx:3
Function
NotFound
()
Chapter08/src/pages/NotFound.jsx:1
Function
NotFoundPage
()
Chapter10/src/app/not-found.js:2
Function
Register
()
Chapter06/frontend/src/Register.jsx:4
Function
RootLayout
({ children })
Chapter10/src/app/layout.js:12
Function
RootLayout
()
Chapter08/src/layouts/RootLayout.jsx:5
Function
SingleCar
()
Chapter08/src/pages/SingleCar.jsx:5
Function
Users
()
Chapter06/frontend/src/Users.jsx:4
Function
account
(acc_type: AccountType, months: int = Path(..., ge=3, le=12))
Chapter04/chapter4_04.py:14
Function
add_car_with_picture
Upload picture to Cloudinary and create a new car with a generated id.
Chapter07/backend/routers/cars.py:62
Function
add_car_with_picture
Upload picture to Cloudinary and create a new car with a generated id.
Chapter09/routers/cars.py:70
Function
add_random_header
(request: Request, call_next)
Chapter04/chapter4_17.py:9
Method
auth_wrapper
(self, auth: HTTPAuthorizationCredentials = Security(security))
Chapter07/backend/authentication.py:38
Method
auth_wrapper
Wrapper function for FastAPI Security that decodes the JWT token and returns the user ID and username. Args: aut
Chapter06/backend/authentication.py:83
Method
auth_wrapper
(self, auth: HTTPAuthorizationCredentials = Security(security))
Chapter09/authentication.py:38
Function
carsLoader
()
Chapter08/src/pages/Cars.jsx:20
Function
cars_by_price
(min_price: int = 0, max_price: int = 100000)
Chapter04/chapter4_05.py:7
Method
check_brand_case
(cls, v: str)
Chapter07/backend/models.py:34
Method
check_make_case
(cls, v: str)
Chapter07/backend/models.py:39
Method
check_passwords_match
(self)
Chapter03/chapter3_15.py:14
Method
check_private_data
(cls, data: Any)
Chapter03/chapter3_15.py:23
Method
check_title
(cls, v: str)
Chapter03/chapter3_14.py:11
Function
createCar
(state, formData)
Chapter10/src/actions.js:60
Function
create_description
(brand, make, year, picture_url)
Chapter09/background.py:35
Function
custom_form_validation_error
(request, exc)
Chapter07/backend/app.py:50
Function
delayed_task
(username: str)
Chapter09/background.py:30
Function
delete_car
Remove a single car.
Chapter07/backend/routers/cars.py:229
Function
delete_car
(car_id: PydanticObjectId)
Chapter09/routers/cars.py:121
Function
error
()
Chapter10/src/app/cars/error.js:2
Function
generateMetadata
({ params }, parent)
Chapter10/src/app/cars/[id]/page.js:12
Function
generateStaticParams
()
Chapter10/src/app/cars/[id]/page.js:6
Function
get_car
(car_id: PydanticObjectId)
Chapter09/routers/cars.py:47
Function
get_cars
()
Chapter04/routers/cars.py:7
Function
get_cars
Get all cars from the database.
Chapter09/routers/cars.py:40
Function
get_root
()
Chapter07/backend/app.py:71
Function
get_users
()
Chapter04/routers/user.py:7
Function
get_users
(id: int)
Chapter03/chapter3_04.py:1
Function
handleClick
()
Chapter05/frontend/src/components/Button.jsx:3
Function
handleSubmit
(e)
Chapter06/frontend/src/Register.jsx:9
Function
hinted_car_id
(id: int)
Chapter04/chapter4_02.py:12
Function
layout
({ children })
Chapter10/src/app/cars/layout.js:1
Function
lifespan
(app: FastAPI)
Chapter07/backend/app.py:22
Function
lifespan
(app: FastAPI)
Chapter09/app.py:13
next →
1–100 of 142, ranked by callers