Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Backend: Día 1
  • Loading branch information
mouredev committed Nov 25, 2022
commit 1325daa13e135c4d8a21f6d065dce62836020ff1
Binary file added BIN +523 Bytes Backend/FastAPI/__pycache__/main.cpython-310.pyc
Binary file not shown.
27 changes: 27 additions & 0 deletions 27 Backend/FastAPI/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Clase en vídeo (24/11/2022): https://www.twitch.tv/videos/1661716599

### Hola Mundo ###

# Documentación oficial: https://fastapi.tiangolo.com/es/

# Instala FastAPI: pip install "fastapi[all]"

from fastapi import FastAPI

app = FastAPI()

# Url local: http://127.0.0.1:8000
@app.get("/")
async def root():
return "Hola FastAPI!"

# Url local: http://127.0.0.1:8000/url
@app.get("/url")
async def url():
return { "url":"https://mouredev.com/python" }

# Inicia el server: uvicorn main:app --reload
# Detener el server: CTRL+C

# Documentación con Swagger: http://127.0.0.1:8000/docs
# Documentación con Redocly: http://127.0.0.1:8000/redoc
19 changes: 19 additions & 0 deletions 19 Backend/type_hints.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Clase en vídeo (24/11/2022): https://www.twitch.tv/videos/1661716599

### Type Hints ###

my_string_variable = "My String variable"
print(my_string_variable)
print(type(my_string_variable))

my_string_variable = 5
print(my_string_variable)
print(type(my_string_variable))

my_typed_variable: str = "My typed String variable"
print(my_typed_variable)
print(type(my_typed_variable))

my_typed_variable = 5
print(my_typed_variable)
print(type(my_typed_variable))
2 changes: 1 addition & 1 deletion 2 Intermediate/00_dates.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Clase en vídeo (06/10/2022): https://www.twitch.tv/videos/1611014007
# Clase en vídeo: https://youtu.be/TbcEqkabAWU

### Dates ###

Expand Down
2 changes: 1 addition & 1 deletion 2 Intermediate/01_list_comprehension.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Clase en vídeo (06/10/2022): https://www.twitch.tv/videos/1611014007
# Clase en vídeo: https://youtu.be/TbcEqkabAWU?t=3239

### List Comprehension ###

Expand Down
2 changes: 1 addition & 1 deletion 2 Intermediate/02_challenges.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Clase en vídeo (13/10/2022): https://www.twitch.tv/videos/1623225956
# Clase en vídeo: https://youtu.be/TbcEqkabAWU?t=4142

### Challenges ###

Expand Down
2 changes: 1 addition & 1 deletion 2 Intermediate/03_lambdas.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Clase en vídeo (19/10/22): https://www.twitch.tv/videos/1628654998
# Clase en vídeo: https://youtu.be/TbcEqkabAWU?t=9145

### Lambdas ###

Expand Down
2 changes: 1 addition & 1 deletion 2 Intermediate/04_higher_order_functions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Clase en vídeo (19/10/22): https://www.twitch.tv/videos/1628654998
# Clase en vídeo: https://youtu.be/TbcEqkabAWU?t=10172

### Higher Order Functions ###

Expand Down
2 changes: 1 addition & 1 deletion 2 Intermediate/05_error_types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Clase en vídeo (25/10/22): https://www.twitch.tv/videos/1634818287
# Clase en vídeo: https://youtu.be/TbcEqkabAWU?t=12721

### Error Types ###

Expand Down
2 changes: 1 addition & 1 deletion 2 Intermediate/06_file_handling.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Clase en vídeo (25/10/22): https://www.twitch.tv/videos/1634818287
# Clase en vídeo: https://youtu.be/TbcEqkabAWU?t=15524

### File Handling ###

Expand Down
2 changes: 1 addition & 1 deletion 2 Intermediate/07_regular_expressions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Clase en vídeo (03/11/22): https://www.twitch.tv/videos/1642512950
# Clase en vídeo: https://youtu.be/TbcEqkabAWU?t=19762

### Regular Expressions ###

Expand Down
2 changes: 1 addition & 1 deletion 2 Intermediate/08_python_package_manager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Clase en vídeo (09/11/22): https://www.twitch.tv/videos/1648023317
# Clase en vídeo: https://youtu.be/TbcEqkabAWU?t=24010

### Python Package Manager ###

Expand Down
2 changes: 1 addition & 1 deletion 2 Intermediate/mypackage/arithmetics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Clase en vídeo (09/11/22): https://www.twitch.tv/videos/1648023317
# Clase en vídeo: https://youtu.be/TbcEqkabAWU?t=24010

### Arithmetics ###

Expand Down
31 changes: 15 additions & 16 deletions 31 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
##### Si consideras útil esta actividad, apóyala haciendo "★ Star" en el repositorio. ¡Gracias!

> ---
> **🚨 ¡ANUNCIO IMPORTANTE!**
>
> Voy a crear un CURSO DESDE CERO gratis para aprender PYTHON en BACKEND.
> Estoy llevando a cabo un CURSO DESDE CERO gratis para aprender PYTHON en BACKEND.
>
> Veremos temas como:
>
Expand All @@ -22,9 +20,9 @@
> * Base de datos
> * Despliegue en servidor
>
> **🔴 INICIO DEL NUEVO CURSO EN DIRECTO: Jueves 24 de Noviembre a las 20:00 (hora España)**
> **🔴 SIGUIENTE CLASE: Jueves 1 de Diciembre a las 20:00 (hora España)**

> 🗓 En [Discord](https://discord.gg/mouredev) tienes creado un [evento](https://discord.gg/U3KjjfUfUJ?event=1040586282327347293) para que consultes la hora de tu país y añadas un recordatorio.
> 🗓 En [Discord](https://discord.gg/mouredev) tienes creado un [evento](https://discord.gg/mouredev?event=1045647021337497600) para que consultes la hora de tu país y añadas un recordatorio.
>
> Mientras, aprovecha para practicar unos [retos de programación](https://retosdeprogramacion.com/semanales2022) y así ir mejorando poco a poco.
>
Expand All @@ -34,6 +32,14 @@

## Clases en vídeo

### [EN CURSO] Backend desde cero

Curso en el que aprenderemos a utilizar Python para backend e implementaremos un API REST con autenticación, base de datos y desplegaremos el proyecto en un servidor real.

> Código: Directorio "Backend" en el proyecto

* [Clase 1 - 24/11/2022](https://www.twitch.tv/videos/1661716599)

### Curso de fundamentos desde cero

Curso que agrupa todas las clases en directo que hacen referencia a los fundamentos de Python.
Expand Down Expand Up @@ -81,20 +87,12 @@ Curso en el que continuamos aprendiendo Python desde sus bases, siguiendo la rut
* [Lección 9 - Manejo de paquetes](https://youtu.be/TbcEqkabAWU?t=24010)
* [Próximos pasos](https://youtu.be/TbcEqkabAWU?t=26228)

### Curso de Backend desde cero

Curso en el que aprenderemos a utilizar Python para backend e implementaremos un API REST con autenticación, base de datos y desplegaremos el proyecto en un servidor real.

> **🔴 INICIO DEL NUEVO CURSO EN DIRECTO: Jueves 24 de Noviembre a las 20:00 (hora España)**
>
> 🗓 En [Discord](https://discord.gg/mouredev) tienes creado un [evento](https://discord.gg/U3KjjfUfUJ?event=1040586282327347293) para que consultes la hora de tu país y añadas un recordatorio.

## Información importante y preguntas frecuentes

* **¿Cómo está estructurado el proyecto y el código?**
* Actualmente tienes dos directorios, "Basic" e "Intermediate", correspondientes a cómo están agrupadas las clases.
* Actualmente tienes tres directorios, "Basic", "Intermediate" y "Backend", correspondientes a cómo están agrupados los cursos.

* **¿Las clases quedan grabadas?**
* **¿Las clases nuevas quedan grabadas?**
* Todos los directos de Twitch están disponibles 60 días en la sección [vídeos](https://twitch.tv/mouredev/videos).

* **¿Puedo asistir a las clases en directo si no he visto las anteriores?**
Expand All @@ -104,7 +102,7 @@ Curso en el que aprenderemos a utilizar Python para backend e implementaremos un
* No te preocupes, antes de que se cumplan los 60 días de Twitch, iré publicando las clases agrupadas en YouTube.

* **¿Harás un curso?**
* Agruparé lecciones en YouTube para crear cursos por nivel. Actualmente ya existe el de [fundamentos desde cero](https://youtu.be/Kp4Mvapo5kc).
* Agruparé lecciones en YouTube para crear cursos por nivel. Actualmente ya existe el de [fundamentos desde cero](https://youtu.be/Kp4Mvapo5kc) e [intermedio](https://youtu.be/TbcEqkabAWU).

* **¿Hasta dónde llegará el curso?**
* Mi idea es repasar los conceptos básicos hasta llegar a crear un backend (en principio).
Expand All @@ -122,6 +120,7 @@ Curso en el que aprenderemos a utilizar Python para backend e implementaremos un
* [Repo 30 días de Python](https://github.com/Asabeneh/30-Days-Of-Python)
* [Juego Codédex para aprender Python](https://www.codedex.io/)
* [Visual Studio Code](https://code.visualstudio.com/): El editor que estoy usando
* [FastAPI](https://fastapi.tiangolo.com/es/): El framework para crear nuestra API Backend

---

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.