Skip to content

Commit fcfc58b

Browse files
committed
Curso de Python desde cero en YouTube [Backend]
1 parent c625bef commit fcfc58b

28 files changed

+43
-24
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
__pycache__/
2+
*.py[cod]
-868 Bytes
Binary file not shown.
-432 Bytes
Binary file not shown.
-2.52 KB
Binary file not shown.
Binary file not shown.

Backend/FastAPI/db/client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase en vídeo (22/12/2022): https://www.twitch.tv/videos/1686104006
1+
# Clase en vídeo: https://youtu.be/_y9qQZXE24A?t=20480)
22

33
### MongoDB client ###
44

@@ -15,7 +15,7 @@
1515
# Base de datos local MongoDB
1616
db_client = MongoClient().local
1717

18-
# Clase en vídeo (28/12/2022): https://www.twitch.tv/videos/1691208894
18+
# Clase en vídeo: https://youtu.be/_y9qQZXE24A?t=25470
1919

2020
# Base de datos remota MongoDB Atlas (https://mongodb.com)
2121
# db_client = MongoClient(
Binary file not shown.

Backend/FastAPI/db/models/user.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase en vídeo (22/12/2022): https://www.twitch.tv/videos/1686104006
1+
# Clase en vídeo: https://youtu.be/_y9qQZXE24A?t=20480
22

33
### User model ###
44

Binary file not shown.

Backend/FastAPI/main.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase en vídeo (24/11/2022): https://www.twitch.tv/videos/1661716599
1+
# Clase en vídeo: https://youtu.be/_y9qQZXE24A
22

33
### Hola Mundo ###
44

@@ -12,16 +12,20 @@
1212

1313
app = FastAPI()
1414

15-
# Routers - Clase en vídeo (08/12/2022): https://www.twitch.tv/videos/1673759045
15+
# Clase en vídeo: https://youtu.be/_y9qQZXE24A?t=12475
1616
app.include_router(products.router)
1717
app.include_router(users.router)
1818

19-
# Routers - Clase en vídeo (22/12/2022): https://www.twitch.tv/videos/1686104006
19+
# Clase en vídeo: https://youtu.be/_y9qQZXE24A?t=14094
2020
app.include_router(basic_auth_users.router)
21+
22+
# Clase en vídeo: https://youtu.be/_y9qQZXE24A?t=17664
2123
app.include_router(jwt_auth_users.router)
24+
25+
# Clase en vídeo: https://youtu.be/_y9qQZXE24A?t=20480
2226
app.include_router(users_db.router)
2327

24-
# Recursos estáticos - Clase en vídeo (14/12/2022): https://www.twitch.tv/videos/1679022882
28+
# Clase en vídeo: https://youtu.be/_y9qQZXE24A?t=13618
2529
app.mount("/static", StaticFiles(directory="static"), name="static")
2630

2731

Backend/FastAPI/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase en vídeo (28/12/2022): https://www.twitch.tv/videos/1691208894
1+
# Clase en vídeo: https://youtu.be/_y9qQZXE24A?t=27335
22
fastapi
33
python-jose
44
passlib
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Backend/FastAPI/routers/basic_auth_users.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase en vídeo (14/12/2022): https://www.twitch.tv/videos/1679022882
1+
# Clase en vídeo: https://youtu.be/_y9qQZXE24A?t=14094
22

33
### Users API con autorización OAuth2 básica ###
44

Backend/FastAPI/routers/jwt_auth_users.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase en vídeo (14/12/2022): https://www.twitch.tv/videos/1679022882
1+
# Clase en vídeo: https://youtu.be/_y9qQZXE24A?t=17664
22

33
### Users API con autorización OAuth2 JWT ###
44

Backend/FastAPI/routers/products.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase en vídeo (08/12/2022): https://www.twitch.tv/videos/1673759045
1+
# Clase en vídeo: https://youtu.be/_y9qQZXE24A?t=12475
22

33
### Products API ###
44

Backend/FastAPI/routers/users.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase en vídeo (01/12/2022): https://www.twitch.tv/videos/1667582141
1+
# Clase en vídeo: https://youtu.be/_y9qQZXE24A?t=5382
22

33
### Users API ###
44

@@ -47,7 +47,7 @@ async def user(id: int):
4747
return search_user(id)
4848

4949

50-
# Clase en vídeo (08/12/2022): https://www.twitch.tv/videos/1673759045
50+
# Clase en vídeo: https://youtu.be/_y9qQZXE24A?t=8529
5151

5252

5353
@router.post("/user/", response_model=User, status_code=201)

Backend/FastAPI/routers/users_db.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase en vídeo (22/12/2022): https://www.twitch.tv/videos/1686104006
1+
# Clase en vídeo: https://youtu.be/_y9qQZXE24A?t=20480
22

33
### Users DB API ###
44

Backend/type_hints.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase en vídeo (24/11/2022): https://www.twitch.tv/videos/1661716599
1+
# Clase en vídeo: https://youtu.be/_y9qQZXE24A?t=1810
22

33
### Type Hints ###
44

Images/header.jpg

-21.6 KB
Loading
Binary file not shown.
Binary file not shown.

README.md

+22-9
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
### Proyecto realizado durante emisiones en directo desde [Twitch](https://twitch.tv/mouredev)
1212
> ##### Si consideras útil el curso, apóyalo haciendo "★ Star" en el repositorio. ¡Gracias!
1313
14-
1514
## Clases en vídeo
1615

1716
### Curso de fundamentos desde cero
@@ -67,14 +66,28 @@ Curso en el que aprenderemos a utilizar Python para backend e implementaremos un
6766

6867
> Código: Directorio "Backend" en el proyecto
6968
70-
* [Clase 1 - 24/11/2022 - Hola Mundo en FastAPI](https://www.twitch.tv/videos/1661716599)
71-
* [Clase 2 - 01/12/2022 - Operaciones con GET y peticiones HTTP](https://www.twitch.tv/videos/1667582141)
72-
* [Clase 3 - 08/12/2022 - Operaciones con POST, PUT, DELETE, códigos HTTP y Routers](https://www.twitch.tv/videos/1673759045)
73-
* [Clase 4 - 14/12/2022 - Recursos estáticos y Autorización OAuth2](https://www.twitch.tv/videos/1679022882)
74-
* [Clase 5 - 22/12/2022 - Base de datos con MongoDB](https://www.twitch.tv/videos/1686104006)
75-
* [Clase 6 - 28/12/2022 - Despliegue en la nube usando MongoDB Atrlas y Deta](https://www.twitch.tv/videos/1691208894)
76-
77-
**Muy pronto curso editado en YouTube...**
69+
<a href="https://youtu.be/_y9qQZXE24A"><img src="http://i3.ytimg.com/vi/_y9qQZXE24A/maxresdefault.jpg" style="height: 50%; width:50%;"/></a>
70+
71+
* [Introducción](https://youtu.be/_y9qQZXE24A)
72+
* [Lección 01 - ¿Qué es un backend?](https://youtu.be/_y9qQZXE24A?t=125)
73+
* [Lección 02 - API y FastAPI](https://youtu.be/_y9qQZXE24A?t=834)
74+
* [Lección 03 - Type Hints](https://youtu.be/_y9qQZXE24A?t=1810)
75+
* [Lección 04 - Configuración FastAPI](https://youtu.be/_y9qQZXE24A?t=2629)
76+
* [Lección 05 - Hola mundo](https://youtu.be/_y9qQZXE24A?t=3504)
77+
* [Lección 06 - Operación GET](https://youtu.be/_y9qQZXE24A?t=5382)
78+
* [Lección 07 - Peticiones HTTP](https://youtu.be/_y9qQZXE24A?t=5925)
79+
* [Lección 08 - Creación API](https://youtu.be/_y9qQZXE24A?t=6099)
80+
* [Lección 09 - Path y Query](https://youtu.be/_y9qQZXE24A?t=7510)
81+
* [Lección 10 - Operaciones POST, PUT y DELETE](https://youtu.be/_y9qQZXE24A?t=8529)
82+
* [Lección 11 - HTTP status codes](https://youtu.be/_y9qQZXE24A?t=11072)
83+
* [Lección 12 - Routers](https://youtu.be/_y9qQZXE24A?t=12475)
84+
* [Lección 13 - Recursos estáticos](https://youtu.be/_y9qQZXE24A?t=13618)
85+
* [Lección 14 - Autorización OAuth2](https://youtu.be/_y9qQZXE24A?t=14094)
86+
* [Lección 15 - OAuth2 JWT](https://youtu.be/_y9qQZXE24A?t=17664)
87+
* [Lección 16 - MongoDB](https://youtu.be/_y9qQZXE24A?t=20480)
88+
* [Lección 17 - MongoDB Atlas](https://youtu.be/_y9qQZXE24A?t=25470)
89+
* [Lección 18 - Despliegue en Deta](https://youtu.be/_y9qQZXE24A?t=27335)
90+
* [Lección Próximos pasos](https://youtu.be/_y9qQZXE24A?t=28484)
7891

7992
## Información importante y preguntas frecuentes
8093

__pycache__/module.cpython-310.pyc

-310 Bytes
Binary file not shown.

__pycache__/my_module.cpython-310.pyc

-431 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)