Best of Flask2025

  1. 1
    Article
    Avatar of nickjanetakisNick Janetakis·50w

    Switching pip to uv in a Dockerized Flask

    A practical guide to replacing pip with uv in Dockerized Python applications, showing how to achieve 10x faster package installation speeds. Covers migrating from requirements.txt to pyproject.toml, configuring Docker environment variables, and using uv commands for dependency management. Includes specific examples for Flask and Django projects with detailed Dockerfile modifications and shell scripts for managing dependencies.

  2. 2
    Article
    Avatar of pulumiPulumi·1y

    Host your Python app for $1.28 a month

    Discover how to host low-traffic Python applications on AWS Lambda for minimal cost. Using containers, developers can leverage Lambda to maintain high availability while paying only when their service is called. The post describes the process of containerizing a Flask app and deploying it with Pulumi, minimizing the need for extensive serverless knowledge. This approach allows for zero cost when idle and scalable infrastructure, benefiting APIs with sporadic traffic and cost-sensitive projects.

  3. 3
    Article
    Avatar of nordicapisNordic APIs·44w

    What is Code Refactoring?

    Code refactoring involves restructuring existing code without changing its functionality to improve readability, maintainability, and performance. The practice is particularly crucial for APIs where performance and reliability are paramount. Refactoring can reduce execution time by 15%, decrease complexity by 30%, and speed up developer onboarding by 62%. Key best practices include following the DRY principle, implementing comprehensive testing before refactoring, favoring composition over inheritance, and making incremental changes rather than major overhauls. The article demonstrates these concepts through Flask API examples, showing how poorly structured code can be transformed into clean, efficient, and maintainable systems.

  4. 4
    Article
    Avatar of rpythonReal Python·1y

    Creating a Scalable Flask Web Application From Scratch – Real Python

    Learn to create a scalable Flask web application from scratch in this comprehensive video course. The course covers setting up a Flask project, creating a basic app, adding multiple pages with blueprints, using Jinja templates, and managing static files. It includes 14 lessons with subtitles, downloadable resources, a text-based tutorial, and Q&A with Python experts.

  5. 5
    Article
    Avatar of testdrivenTestDriven.io·1y

    Building a Real-time Dashboard with Flask and Svelte

    Learn to build a real-time analytics dashboard using Flask for the backend and Svelte for the frontend. The tutorial covers setting up a Flask backend with server-sent events (SSE) for real-time data streaming, creating a Svelte application using SvelteKit, and implementing interactive charts and graphs. Additionally, it includes handling real-time data updates and adding configurable alert thresholds for monitoring sensor data.

  6. 6
    Article
    Avatar of testdrivenTestDriven.io·39w

    Developing a Real-time Dashboard with Flask, Postgres, and Socket.IO

    A comprehensive tutorial demonstrating how to build a real-time inventory tracking dashboard using Flask, PostgreSQL, and Socket.IO. The guide covers implementing PostgreSQL LISTEN/NOTIFY triggers for database change detection, creating a threaded notification listener, building RESTful API endpoints for inventory management, and developing a responsive frontend with live WebSocket updates. Key features include automatic real-time synchronization across multiple clients, proper error handling, and a complete working dashboard interface.

  7. 7
    Article
    Avatar of notedNoted·36w

    HomeHub: A Self-Hosted Hub for Your Family’s Everyday Life

    HomeHub is a lightweight, self-hosted web application that serves as a centralized family hub for managing household tasks. It combines shared notes, shopping lists, chore tracking, calendars, expense management, file sharing, and additional utilities like recipe books and QR code generators. The application runs on your home network using Docker, providing privacy and control over family data while replacing multiple scattered apps with a single, integrated solution.

  8. 8
    Article
    Avatar of medium_jsMedium·1y

    How to Build an RBAC Permissioned Admin Dashboard with Permit.io and Flask

    Learn how to implement Role-Based Access Control (RBAC) in a Flask application using Permit.io for managing roles and permissions. The guide covers setting up an employee management system, installing necessary dependencies, creating resources and roles in Permit.io, enforcing permissions with the Permit SDK, and testing the application. This approach enhances scalability and security, preventing unauthorized access to sensitive data.

  9. 9
    Article
    Avatar of nickjanetakisNick Janetakis·1y

    Shrink Your Docker Images by ~50% with Multi-Stage Builds — Nick Janetakis

    Learn how to significantly reduce the size of Docker images using multi-stage builds. The post provides examples for Flask, Django, Rails, Node, and Phoenix, explaining the process of splitting build time and run-time dependencies. By organizing multi-stage builds, you can create more efficient, smaller, and maintainable Docker images.

  10. 10
    Article
    Avatar of game_developersGame Developers·1y

    Building a Web-Based MMORPG

    A developer is working on a casual project to create a web-based MMORPG using Flask and Three.js. They are seeking additional collaborators with or without game development experience to join the project, especially those skilled in sound and model design.

  11. 11
    Article
    Avatar of appsignalAppSignal·42w

    Deploy a Python Flask App to Render with Docker

    A comprehensive guide to building and deploying a Flask application using Docker containers. The tutorial covers creating a Flask app with Celery background workers, using RabbitMQ as a message broker, and deploying the multi-service application to Render. It includes detailed Docker setup instructions for macOS, configuration files for local development and production deployment, and integration with CloudAMQP for managed RabbitMQ hosting.

  12. 12
    Article
    Avatar of ghblogGitHub Blog·1y

    GitHub for Beginners: Building a REST API with Copilot

    This post is part of a series on using GitHub Copilot and demonstrates building a REST API for Planventure, a travel itinerary builder. It guides users through setting up a Flask environment, using Copilot to generate code for database models, authentication, and CRUD operations for trips. The post includes instructions for testing and debugging with tools like Bruno, and highlights using Copilot for generating code changes and documentation.

  13. 13
    Article
    Avatar of appsignalAppSignal·47w

    How to Use MongoDB in Python Flask

    MongoDB is a flexible NoSQL database that integrates well with Flask applications. The tutorial covers setting up a Flask project with MongoDB using PyMongo, creating a User model with CRUD operations, and implementing API endpoints for creating, reading, updating, and deleting users. Key benefits include flexible data modeling, horizontal scalability through sharding, and seamless integration with Python frameworks.

  14. 14
    Article
    Avatar of rpythonReal Python·1y

    Building a Code Image Generator With Python – Real Python

    Learn to build a code image generator using Flask, Jinja templates, Playwright, and Pygments. This video course offers 16 lessons, subtitles, full transcripts, and downloadable resources to help programmers turn code snippets into attractive images for social media sharing.