Before Docker, my FastAPI app only ran on my machine. Setting it up anywhere else meant installing Python, PostgreSQL, configuring ports, matching versions... With Docker, I reduced that to 2 commands: git clone ... docker compose up --build I containerized a FastAPI + PostgreSQL REST API covering users, products, and orders. The database and app run as isolated services that communicate through Docker's internal network. What I learned: Writing Dockerfiles Docker Compose for multi-container apps Container networking repo: https://lnkd.in/diy7H_Xh I also noted down every important Docker command I learned as a cheatsheet, might be useful if you're just starting out:https://lnkd.in/dchhqHkC #Docker #Python #FastAPI #Backend #Learning
Containerizing FastAPI with Docker and PostgreSQL in 2 Commands
More Relevant Posts
-
Ever wondered what those file extensions actually mean? From .py to .exe, each file type has its own purpose, and knowing them can level up your tech skills instantly. 1. .py – Python file 2. .apk – Android app file 3. .exe – Executable program 4. .zip – Compressed folder 5. .csv – Data file …and many more! Save this post for quick reference & share it with your tech-savvy friends! #techtips #fileextensions #codingbasics #digitalskills #computerknowledge
To view or add a comment, sign in
-
-
Let's Create Our First Microsoft 365 Agent SDK using Python - For Single Tenant. Step 1: Set Up Your Development Environment I am using VS Code, so you don’t need to manually install Python on your system (unless you want to).VS Code can handle Python via extensions which makes it super easy and everything at once place. You can download complete sample : here Install These Extensions in VS Code Open VS Code → Extensions → install: Python (Microsoft) Dev Tunnels (optional but helpful) GitHub Pull Requests & Issues ( Saves a lot of Download time) These ensure: You can run Python files directly inside VS Code IntelliSense / linting works Dev tunnel commands work in the integrated terminal Step 2: Download/Clone the Official Sample I am using this exact sample: Agent SDK Python Cards Run these commands inside VS Code Terminal: git clone https://lnkd.in/egtvCF7z cd Agents/samples/python/cards You now have the complete... #techcommunity #azure #microsoft https://lnkd.in/egZE68pZ
To view or add a comment, sign in
-
-
🏗️ Building the Backbone: From Python Classes to Persistent Data "The best way to learn is to build, break, and fix. 🛠️ Over the last few days, I’ve been architecting the backend for my FastAPI TodoApp. It’s been a journey of connecting the dots: Defining the Schema: Using SQLAlchemy to turn Python classes into database tables. Establishing the Link: Setting up the engine and SessionLocal to bridge the gap between my app and SQLite. Overcoming Hurdles: Navigating Windows environment variables and mastering the SQLite3 CLI to verify data integrity. The foundation is now officially set. By calling models.Base.metadata.create_all(engine), my app now automatically generates its own database environment on startup. Next stop: Developing the CRUD API endpoints to bring this data to life! 🚀" #Python #FastAPI #SQLAlchemy #BackendDevelopment #CleanCode #SoftwareEngineering
To view or add a comment, sign in
-
-
📓 Just published a FREE production-ready FastAPI authentication system on Docker Hub! ✅ JWT tokens ✅ Role-based access control ✅ Argon2 password hashing ✅ Docker containerized ✅ Pull & run in 2 commands Perfect for devs who need auth FAST without building from scratch. 🔗 Docker Image: https://lnkd.in/eb7_dHKr 💻 Source Code: https://lnkd.in/eKshJ5gz What would you build with this? Comment below! 👇 #FastAPI #Python #Docker #Authentication #Backend #OpenSource #100DaysOfCode
To view or add a comment, sign in
-
Quick backend progress update: Over the last couple of days I moved from basic Django concepts into actually structuring a multi-page app. Built with Django: • Created reusable templates using Jinja2 • Used template inheritance/components to generate multiple webpages • Routed project-level "urls.py" into app-level routing • Added routes to serve templated pages cleanly Also spent time strengthening fundamentals: • Studied types of Operating Systems • Solved linked list problems for DSA practice One thing I’m noticing: Building backend isn’t just “learning Django.” It’s understanding how multiple layers fit together: Routing Templates Data flow System fundamentals Problem solving Trying to build depth—not just stack tutorials. #BackendDevelopment #Django #Jinja2 #Python #OperatingSystems #DSA #LearnInPublic #SoftwareEngineering
To view or add a comment, sign in
-
From Microsoft Community Hub, Let's Create Our First Microsoft 365 Agent SDK using Python - For Single Tenant, by meenakshiBalekar "Step 1: Set Up Your Development Environment I am using VS Code , so you don’t need to manually install Python on your..." https://lnkd.in/enDF5JX5
To view or add a comment, sign in
-
Type errors in Python only surface when the faulty code path actually executes at runtime. A function that receives the wrong argument type can pass an entire test suite — then fail in production on a condition nobody anticipated. mypy catches that class of error before any code runs. But many articles stop at "add annotations and run mypy." The mechanics of how it actually works stay opaque. The article linked below (on PythonCodeCrack) goes further: — The full analysis pipeline: AST parse → import resolution → type inference → contract checking, with no execution involved — How gradual typing works in practice, including what the Any type actually does to mypy's analysis downstream — A precise look at type narrowing and control flow analysis — with an interactive diagram showing how isinstance() resolves str | int into concrete types per branch — The difference between # type: ignore and cast() — and why using the wrong one silently breaks your type guarantees for all code that follows — What mypy 1.20 changed: the narrowing engine rewrite, fixed-format cache as the new default, and the experimental Ruff-based parser — How pyright and ty differ from mypy architecturally — not just in speed benchmarks, but in evaluation strategy and what that means for unannotated legacy code Written for developers who want to understand the tool, not just run it. https://lnkd.in/e838Mdu5 #Python #SoftwareEngineering #TypeHints
To view or add a comment, sign in
-
🎯 Tech Learning Journey - Day 03: Web APIs & Requests - Talk to the Internet! Web APIs are how your Python code talks to websites and online services. You send a request, just like asking for information, and the API sends back data that you can use in your application. import requests # Get data from a public API response = requests.get\('https://lnkd.in/gUpgfHqa) data = response.json\(\) print\(f"User: \{data\['login'\]\}"\) print\(f"Repos: \{data\['public\_repos'\]\}"\) Where I use this: Fetching weather updates, getting user data from databases, and integrating third-party services into my apps. #Python #Coding #Programming #WebAPI
To view or add a comment, sign in
-
-
Every semester, I had to manually download dozens of files from Google Classroom — opening each course, each assignment, each material one by one. It was taking forever and I kept missing files. Then I found an amazing open source Python script on GitHub by Mohamed Amara that automates the whole process. It was a great idea and a solid foundation — but since it was an early version, there were a few things that didn't work in my setup. So I decided to contribute back and improve it. Here's what I added in my pull request: 🔧 Fixed a crash on Windows for courses with '/' in their name (e.g. SOA24/25) 📁 Files now properly sorted into cours/ and td/ subfolders 📄 Added full support for teacher-posted Materials — an additional file type from a separate API endpoint 🔄 Fixed pagination so ALL files are fetched regardless of how many there are 🐛 Fixed an error that caused some files inside assignments to be skipped 📝 Wrote a complete README with setup guide and a detailed changelog This experience reminded me that open source is all about building on each other's work. One person starts something useful, another makes it a little better, and together it helps everyone. 🔗 Original repo: https://lnkd.in/dhRFC2Qm 🔗 My fork with the fixes: https://lnkd.in/dx2DhcZQ #OpenSource #Python #GitHub #GoogleClassroom #SoftwareDevelopment #Developer
To view or add a comment, sign in
-
My Windows text to speech app built in Python with customtkinter, pyttsx3, and SAPI5. The main goal was to make something offline, simple, and actually useful for larger text input. Supports large text, file import, WAV export, saved settings, and a Windows installer. Of course, we have RAM boost enabled (max up to 16Gb). Repo: https://lnkd.in/g7QYjSHw https://lnkd.in/gVphazwA https://lnkd.in/gmH72c6J #Python #OpenSource #WindowsDev #DesktopApp #TextToSpeech
To view or add a comment, sign in
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development