You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 KiB

🛠️ 🔧

🕐 🛠️ FastAPI 🈸, ⚖️ 🤙, 🙆 🆎 🕸 🛠️, 📤 📚 🔧 👈 👆 🎲 💅 🔃, & ⚙️ 👫 👆 💪 🔎 🏆 🌌 🛠️ 👆 🈸.

🔧:

  • 💂‍♂ - 🇺🇸🔍
  • 🏃‍♂ 🔛 🕴
  • 🧬 (🔢 🛠️ 🏃)
  • 💾
  • ⏮️ 🔁▶️

👥 🔜 👀 👫 🔜 📉 🛠️.

🔚, 🏆 🎯 💪 🍦 👆 🛠️ 👩‍💻 🌌 👈 🔐, 📉, & ⚙️ 📊 (🖼 🛰 💽/🕹 🎰) ♻ 💪. 👶

👤 🔜 💬 👆 🍖 🌖 🔃 👫 🔧 📥, & 👈 🔜 🤞 🤝 👆 🤔 👆 🔜 💪 💭 🛠️ 👆 🛠️ 📶 🎏 🌐, 🎲 🔮 🕐 👈 🚫 🔀.

🤔 👫 🔧, 👆 🔜 💪 🔬 & 🔧 🏆 🌌 🛠️ 👆 👍 🔗.

📃, 👤 🔜 🤝 👆 🌅 🧱 🍮 🛠️ FastAPI 🈸.

🔜, ➡️ 👉💭. 👫 🔧🙆 🎏 🆎 🕸 🛠️. 👶

💂‍♂ - 🇺🇸🔍

⏮️ 📃 🔃 🇺🇸🔍{.internal-link target=_blank} 👥 🇭🇲 🔃 🇺🇸🔍 🚚 🔐 👆 🛠️.

👥 👀 👈 🇺🇸🔍 🛎 🚚 🦲 🔢 👆 🈸 💽, 🤝 🗳.

& 📤 ✔️ 🕳 🈚 🇺🇸🔍 📄, 💪 🎏 🦲 ⚖️ 💪 🕳 🎏.

🖼 🧰 🇺🇸🔍

🧰 👆 💪 ⚙️ 🤝 🗳:

  • Traefik
    • 🔁 🍵 📄 🔕 👶
  • 📥
    • 🔁 🍵 📄 🔕 👶
  • 👌
    • ⏮️ 🔢 🦲 💖 Certbot 📄 🔕
    • ⏮️ 🔢 🦲 💖 Certbot 📄 🔕
  • Kubernete ⏮️ 🚧 🕹 💖 👌
    • ⏮️ 🔢 🦲 💖 🛂-👨‍💼 📄 🔕
  • 🍵 🔘🐕‍🦺 🍕 👫 🐕‍🦺 (✍ 🔛 👶)

1️⃣ 🎛 👈 👆 💪 ⚙️ 🐕‍🦺 👈 🔨 🌖 👷 🆙 🇺🇸🔍. 💪 ✔️ 🚫 ⚖️ 🈚 👆 🌅, ️. 👈 💼, 👆 🚫🔜 ✔️🆙 🤝 🗳 👆.

👤 🔜 🎦 👆 🧱 🖼 ⏭ 📃.


⤴️🔧 🤔 🌐 🔃 📋 🏃 👆🛠️ ( Uvicorn).

📋 & 🛠️

👥 🔜 💬 📚 🔃 🏃 "🛠️", ️ ⚠ ✔️🔃 ️ ⛓, & 🔺 ⏮️ 🔤 "📋".

📋

🔤 📋 🛎 ⚙️ 🔬 📚 👜:

  • 📟 👈 👆 ✍, 🐍 📁.
  • 📁 👈 💪 🛠️ 🏃‍♂ ⚙️, 🖼: python, python.exe ⚖️ uvicorn.
  • 🎯 📋 🏃‍♂ 🔛 🏗 ⚙️, ⚙️ 💽, & ♻ 👜 🔛 💾. 👉 🤙 🛠️.

🛠️

🔤 🛠️ 🛎 ⚙️ 🌖 🎯 🌌, 🕴 🔗 👜 👈 🏃 🏃‍♂ ⚙️ (💖 🏁🔛):

  • 🎯 📋 🏃‍♂ 🔛 🏃‍♂ ⚙️.
    • 👉 🚫 🔗 📁, 🚫 📟, 🔗 🎯 👜 👈 🛠️ & 🔄 🏃‍♂ ⚙️.
  • 🙆 📋, 🙆 📟, 💪 🕴 👜 🕐 🛠️. , 🕐 📤 🛠️ 🏃.
  • 🛠️ 💪 (⚖️ "💥") 👆, ⚖️ 🏃‍♂ ⚙️. 👈 ☝, 🏃/ 🛠️, & 💪 🙅‍♂ 📏 👜.
  • 🔠 🈸 👈 👆 ✔️ 🏃 🔛 👆 💻 ✔️ 🛠️ ️, 🔠 🏃‍♂ 📋, 🔠 🚪, ️. & 📤 🛎 📚 🛠️ 🏃 🎏 🕰 💻 🔛.
  • 📤 💪 💗 🛠️ 🎏 📋 🏃 🎏 🕰.

🚥 👆 👅 "📋 👨‍💼" ⚖️ "⚙️ 🖥" (⚖️ 🎏 🧰) 👆 🏃‍♂ ⚙️, 👆 🔜 💪 👀 📚 👈 🛠️ 🏃‍♂.

& , 🖼, 👆 🔜 🎲 👀 👈 📤 💗 🛠️ 🏃 🎏 🖥 📋 (🦎, 💄, 📐, ️). 👫 🛎 🏃 1️⃣ 🛠️ 📍 📑, 🎏 🛠️.


🔜 👈 👥 💭 🔺 🖖🛠️ & 📋, ➡️ 😣 💬 🔃 🛠️.

🏃‍♂ 🔛 🕴

🌅 💼, 🕐 👆 ✍ 🕸 🛠️, 👆 💚 🕧 🏃‍♂, ➡, 👈 👆 👩‍💻 💪 🕧 🔐 ️. 👉 ↗️, 🚥 👆 ✔️ 🎯 🤔 👆 💚 🏃 🕴 🎯 ⚠, 🌅 🕰 👆 💚 🕧 🏃‍♂ & 💪.

🛰 💽

🕐 👆🆙 🛰 💽 (☁ 💽, 🕹 🎰, ️.) 🙅 👜 👆 💪 🏃 Uvicorn (⚖️ 🎏) , 🎏 🌌 👆 🕐 🛠️ 🌐.

& 🔜 👷 & 🔜⏮️ 🛠️.

🚥 👆 🔗 💽 💸, 🏃‍♂ 🛠️ 🔜 🎲 ☠️.

& 🚥 💽 ⏏ (🖼 ⏮️ ℹ, ⚖️ 🛠️ ➡️🐕‍🦺) 👆 🎲 🏆 🚫 👀 . & ↩️ 👈, 👆 🏆 🚫 💭 👈 👆 ✔️🛠️ . , 👆 🛠️ 🔜 🚧 ☠️. 👶

🏃 🔁 🔛 🕴

🏢, 👆 🔜 🎲 💚 💽 📋 ( Uvicorn) ▶️ 🔁 🔛 💽 🕴, & 🍵 💪 🙆 🗿 🏥, ✔️ 🛠️ 🕧 🏃 ⏮️ 👆 🛠️ ( Uvicorn 🏃‍♂ 👆 FastAPI 📱).

🎏 📋

🏆 👉, 👆 🔜 🛎 ✔️ 🎏 📋 👈 🔜💭 👆 🈸 🏃 🔛 🕴. & 📚 💼, 🔜💭 🎏 🦲 ⚖️ 🈸 🏃, 🖼, 💽.

🖼 🧰 🏃 🕴

🖼 🧰 👈 💪 👉 👨‍🏭:

  • Kubernete
  • ☁ ✍
  • 🐝 📳
  • 👨‍💻
  • 🍵 🔘🐕‍🦺 🍕 👫 🐕‍🦺
  • 🎏...

👤 🔜 🤝 👆 🌅 🧱 🖼 ⏭ 📃.

🎏💭 👆 🈸 🏃 🔛 🕴, 👆 🎲 💚💭 ⏮️ .

👥

👥, 🗿, ⚒ , 🌐 🕰. 🖥 🌖 🕧 ✔️ 🐛 🕵‍♂ 🎏 🥉. 👶

& 👥 👩‍💻 🚧 📉 📟 👥 🔎 👈 🐛 & 👥 🛠️ 🆕 ⚒ (🎲 🆕 🐛 💁‍♂️ 👶).

🤪 🔁 🍵

🕐 🏗 🕸 🔗 ⏮️ FastAPI, 🚥 📤 👆 📟, FastAPI 🔜 🛎 🔌 ️ 👁 📨 👈. 🛡

👩‍💻 🔜 🤚 5️⃣0️⃣0️⃣ 🔗 💽 👈 📨, 🈸 🔜 😣 👷📨 ↩️ 💥 🍕.

🦏 - 💥

👐, 📤 5️⃣📆 💼 🌐 👥📟 👈 💥 🎂 🈸 ⚒ Uvicorn & 🐍 💥. 👶

& , 👆 🔜 🎲 🚫 💚 🈸 🚧 ☠️ ↩️ 📤 1️⃣ 🥉, 👆 🎲 💚 😣 🏃 🌘 🛠️ 👈 🚫 💔.

⏮️ 💥

👈 💼 ⏮️ 🤙 👎 👈 💥 🏃‍♂ 🛠️, 👆 🔜 💚 🔢 🦲 👈 🈚 🔁 🛠️, 🌘 👩‍❤‍👨 🕰...

!!! tip ...👐 🚥 🎂 🈸 💥 🎲 🚫🔑 🚧 🔁 ️ ♾. 📚 💼, 👆 🔜 🎲 👀 ⏮️ 🛠️, ⚖️ 🌘 ▶️⏮️ 🛠️.

➡️ 🎯 🔛 👑 💼, 🌐❔ ⚫️ 💪 💥 🍕 🎯 💼 **🔮**, & ⚫️ ⚒ 🔑 ⏏ ⚫️.

👆 🔜 🎲 💚 ✔️ 👜 🈚 🔁 👆 🈸 🔢 🦲, ↩️ 👈 ☝, 🎏 🈸 ⏮️ Uvicorn & 🐍 💥, 📤 🕳 🎏 📟 🎏 📱 👈 💪 🕳 🔃 ️.

🖼 🧰🔁

🏆 💼, 🎏 🧰 👈 ⚙️ 🏃 📋 🔛 🕴 ⚙️ 🍵 🏧 .

🖼, 👉 💪 🍵:

  • Kubernete
  • ☁ ✍
  • 🐝 📳
  • 👨‍💻
  • 🍵 🔘🐕‍🦺 🍕 👫 🐕‍🦺
  • 🎏...

🧬 - 🛠️ & 💾

⏮️ FastAPI 🈸, ⚙️ 💽 📋 💖 Uvicorn, 🏃‍♂ 🕐 1️⃣ 🛠️ 💪 🍦 💗 👩‍💻 🔁.

📚 💼, 👆 🔜 💚 🏃 📚 👨‍🏭 🛠️ 🎏 🕰.

💗 🛠️ - 👨‍🏭

🚥 👆 ✔️ 🌅 👩‍💻 🌘 👁 🛠️ 💪 🍵 (🖼 🚥 🕹 🎰 🚫 💁‍♂️ 🦏) & 👆 ✔️ 💗 🐚 💽 💽, ⤴️ 👆 💪 ✔️ 💗 🛠️ 🏃‍♂ ⏮️ 🎏 🈸 🎏 🕰, & 📎 🌐 📨 👪 👫.

🕐 👆 🏃 💗 🛠️ 🎏 🛠️ 📋, 👫 🛎 🤙 👨‍🏭.

👨‍🏭 🛠️ & ⛴

💭 ➡️ 🩺 🔃 🇺🇸🔍{.internal-link target=_blank} 👈 🕴 1️⃣ 🛠️ 💪 👂 🔛 1️⃣ 🌀 ⛴ & 📢 📢 💽

👉 ☑.

, 💪 ✔️ 💗 🛠️ 🎏 🕰, 📤 ✔️ 👁 🛠️ 👂 🔛 👈 ⤴️ 📶 📻 🔠 👨‍🏭 🛠️ 🌌.

💾 📍 🛠️

🔜, 🕐 📋 📐 👜 💾, 🖼, 🎰 🏫 🏷 🔢, ⚖️ 🎚 📁 🔢, 🌐 👈 🍴 👄 💾 (💾) 💽.

& 💗 🛠️ 🛎 🚫 💰 🙆 💾. 👉👈 🔠 🏃 🛠️ ✔️ 🚮 👍 👜, 🔢, & 💾. & 🚥 👆 😩 💸 💾 👆 📟, 🔠 🛠️ 🔜 🍴 🌓 💸 💾.

💽 💾

🖼, 🚥 👆 📟 📐 🎰 🏫 🏷 ⏮️ 1️⃣ 💾 📐, 🕐 👆 🏃 1️⃣ 🛠️ ⏮️ 👆 🛠️, 🔜 🍴 🌘 1️⃣ 💾 💾. & 🚥 👆 ▶️ 4️⃣ 🛠️ (4️⃣ 👨‍🏭), 🔠 🔜 🍴 1️⃣ 💾 💾. 🌐, 👆 🛠️ 🔜 🍴 4️⃣ 💾 💾.

& 🚥 👆 🛰 💽 ⚖️ 🕹 🎰 🕴 ✔️ 3️⃣ 💾 💾, 🔄 📐 🌅 🌘 4️⃣ 💾 💾 🔜 🤕 ⚠. 👶

💗 🛠️ - 🖼

👉 🖼, 📤 👨‍💼 🛠️ 👈 ▶️ & 🎛 2️⃣ 👨‍🏭 🛠️.

👉 👨‍💼 🛠️ 🔜 🎲 1️⃣ 👂 🔛 📢. & 🔜 📶 🌐 📻 👨‍🏭 🛠️.

👈 👨‍🏭 🛠️ 🔜 🕐 🏃‍♂ 👆 🈸, 👫 🔜 🎭 👑 📊 📨 📨 & 📨 📨, & 👫 🔜 📐 🕳 👆 🚮 🔢 💾.

& ↗️, 🎏 🎰 🔜 🎲 ✔️ 🎏 🛠️ 🏃 👍, ↖️ ➡️ 👆 🈸.

😌👈 🌐 💽 ⚙️ 🔠 🛠️ 💪 🪀 📚 🤭 🕰, 💾 (💾) 🛎 🚧 🌖 ⚖️ 🌘 .

🚥 👆 ✔️ 🛠️ 👈 🔨 💸 📊 🔠 🕰 & 👆 ✔️ 📚 👩‍💻, ⤴️ 💽 🛠️ 🔜 🎲 (↩️ 🕧 🔜 🆙 & 🔽 🔜).

🖼 🧬 🧰 & 🎛

📤 💪 📚 🎯 🏆 👉, & 👤 🔜 💬 👆 🌅 🔃 🎯 🎛 ⏭ 📃, 🖼 🕐 💬 🔃 ☁ & 📦.

👑🤔 👈 📤 ✔️ 👁 🦲 🚚 📢 📢. & ⤴️ ✔️ ✔️ 🌌 📶 📻 🔁 🛠️/👨‍🏭.

📥 💪 🌀 & 🎛:

  • 🐁 🛠️ Uvicorn 👨‍🏭
    • 🐁 🔜 🛠️ 👨‍💼 👂 🔛 📢 & , 🧬 🔜 ✔️ 💗 Uvicorn 👨‍🏭 🛠️
  • Uvicorn 🛠️ Uvicorn 👨‍🏭
    • 1️⃣ Uvicorn 🛠️ 👨‍💼 🔜 👂 🔛 📢 & , & 🔜 ▶️ 💗 Uvicorn 👨‍🏭 🛠️
  • Kubernete & 🎏 📎 📦 ⚙️
    • 🕳 🧽 🔜 👂 🔛 📢 & . 🧬 🔜 ✔️ 💗 📦, 🔠 ⏮️ 1️⃣ Uvicorn 🛠️ 🏃‍♂
  • 🐕‍🦺 👈 🍵 👉 👆
    • 🐕‍🦺 🔜 🎲 🍵 🧬 👆. 🔜 🎲 ➡️ 👆 🔬 🛠️ 🏃, ⚖️ 📦 🖼 ⚙️, 🙆 💼, 🔜 🌅 🎲 👁 Uvicorn 🛠️, & ☁ 🐕‍🦺 🔜 🈚 🔁 ️.

!!! tip 🚫 😟 🚥 👫 🏬 🔃 📦, ☁, ⚖️ Kubernete 🚫📚 🔑.

👤 🔜 💬 👆 🌅 🔃 📦 🖼, ☁, Kubernete, ♒️. 🔮 📃: [FastAPI 📦 - ☁](./docker.md){.internal-link target=_blank}.

⏮️ 🔁▶️

📤 📚 💼 🌐 👆 💚 🎭 📶 ▶️ 👆 🈸.

🖼, 👆 💪 💚 🏃 💽 🛠️.

🌅 💼, 👆 🔜 💚 🎭 👉 🔁 🕴 🕐.

, 👆 🔜 💚 ✔️ 👁 🛠️ 🎭 👈 ⏮️ 🔁, ⏭ ▶️ 🈸.

& 👆 🔜 ✔️💭 👈 ️ 👁 🛠️ 🏃 👈 ⏮️ 🔁 ** 🚥 ⏮️, 👆 ▶️ 💗 🛠️ (💗 👨‍🏭) 🈸 ️. 🚥 👈 🔁 🏃 💗 🛠️, 👫 🔜 👷 🏃‍♂ 🔛 🔗, & 🚥 📶 🕳 💎 💖 💽 🛠️, 👫 💪 🤕⏮️ 🔠 🎏.

↗️, 📤 💼 🌐 📤 🙅‍♂ ⚠ 🏃 ⏮️ 🔁 💗 🕰, 👈 💼, 📚 🍵.

!!! tip , ✔️ 🤯 👈 🔛 👆 🖥, 💼 👆 5️⃣📆 🚫 💪 🙆 ⏮️ 🔁▶️ 👆 🈸.

👈 💼, 👆 🚫🔜 ✔️ 😟 🔃 🙆 👉. 🤷

🖼 ⏮️ 🔁 🎛

👉 🔜 🪀 🙇 🔛 🌌 👆 🛠️ 👆 ⚙️, & 🔜 🎲 🔗 🌌 👆 ▶️ 📋, 🚚 ⏏, ️.

📥 💪 💭:

  • "🕑 📦" Kubernete 👈 🏃👆 📱 📦
  • 🎉👈 🏃 ⏮️ 🔁 & ⤴️ ▶️ 👆 🈸
    • 👆 🔜 💪 🌌 ▶️/⏏ 👈 🎉 ✍, 🔍 , ️.

!!! tip 👤 🔜 🤝 👆 🌅 🧱 🖼 🔨 👉 ⏮️ 📦 🔮 📃: FastAPI 📦 - ☁{.internal-link target=_blank}.

🛠️

👆 💽(Ⓜ) () , 👆 💪 🍴 ⚖️ ⚙️, ⏮️ 👆 📋, 📊 🕰 🔛 💽, & 💾 💾 💪.

🌅 ⚙️👆 💚 😩/♻ 💪 💭 "🚫 🌅", 🌌, 👆 🔜 🎲 💚 🍴 🌅 💪 🍵 💥.

🚥 👆 💸 3️⃣ 💽 👆 ⚙️ 🕴 🐥 🍖 👫 💾 & 💽, 👆 🎲 🗑 💸 👶, & 🎲 🗑 💽 🔦 🏋️ 👶, ️.

👈 💼, 💪 👻 ✔️ 🕴 2️⃣ 💽 & ⚙️🌐 👫 ℹ (💽, 💾, 💾, 🕸 💿, ️).

🔛 🎏 , 🚥 👆 ✔️ 2️⃣ 💽 & 👆 ⚙️ 1️⃣0️⃣0️⃣ 💯 👫 💽 & 💾, ☝ 1️⃣ 🛠️ 🔜 💭 🌅 💾, & 💽 🔜 ✔️ ⚙️ 💾 "💾" ( 💪 💯 🕰 🐌), ⚖️ 💥. ⚖️ 1️⃣ 🛠️ 💪 💪 📊 & 🔜 ✔️ 💽 🆓 🔄.

👉 💼, 🔜 👍 🤚 1️⃣ 💽 & 🏃 🛠️ 🔛 👈 👫 🌐 ✔️ 🥃 💾 & 💽 🕰.

📤 🤞 👈 🤔 👆 ✔️ 🌵 ⚙️ 👆 🛠️. 🎲 🚶 🦠, ⚖️ 🎲 🎏 🐕‍🦺 ⚖️ 🤖 ▶️ ⚙️ ️. & 👆 💪 💚 ✔️ 🔒 👈 💼.

👆 💪 🚮 🔢 🎯, 🖼, 🕳 🖖 5️⃣0️⃣ 💯 9️⃣0️⃣ 💯🛠️. ☝ 👈 📚 🎲 👑 👜 👆 🔜 💚 ⚖ & ⚙️👆 🛠️.

👆 💪 ⚙️ 🙅 🧰 💖 htop 👀 💽 & 💾 ⚙️ 👆 💽 ⚖️ 💸 ⚙️ 🔠 🛠️. ⚖️ 👆 💪 ⚙️ 🌖 🏗 ⚖ 🧰, 5️⃣📆 📎 🤭 💽, ️.

🌃

👆 ✔️ 👂 📥 👑 🔧 👈 👆 🔜 🎲 💪 ✔️ 🤯 🕐 🤔 🛠️ 👆 🈸:

  • 💂‍♂ - 🇺🇸🔍
  • 🏃‍♂ 🔛 🕴
  • 🧬 (🔢 🛠️ 🏃)
  • 💾
  • ⏮️ 🔁▶️

🤔 👉 💭 & 👫 🔜 🤝 👆 🤔 💪 🙆 🚫 🕐 🛠️ & 🛠️ 👆 🛠️. 👶

📄, 👤 🔜 🤝 👆 🌅 🧱 🖼 💪 🎛 👆 💪 . 👶