Best of TestDriven.io2024

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

    Using HTMX with FastAPI

    Learn how to integrate HTMX with FastAPI by creating a simple todo app. This guide covers setting up the environment, creating endpoints to handle CRUD operations, and deploying the app on Render. The combination of FastAPI and HTMX facilitates efficient server-side rendering, minimizing client-side logic and providing a seamless user experience. Included are techniques for rendering HTML conditionally based on request headers and leveraging Jinja2 templates for dynamic content.

  2. 2
    Article
    Avatar of testdrivenTestDriven.io·2y

    Django REST Framework: Pros and Cons

    Django REST Framework is a powerful open-source framework for building RESTful APIs with features like routing, request/response handling, authorization/authentication, serialization, and more. Pros include ease of use, maturity, security, and a huge ecosystem, while cons include a learning curve, potential performance issues, separation of concerns, and lack of new features. Alternatives like Django Ninja, Django Tastypie, FastAPI, and Flask are also suggested.

  3. 3
    Article
    Avatar of testdrivenTestDriven.io·2y

    Developing GraphQL APIs in Django with Strawberry

    Discover the integration of Strawberry GraphQL with Django to create an efficient, type-safe API. The tutorial covers setting up a Django project, defining models, and creating a GraphQL schema with queries and mutations. It also explores error handling and testing with pytest. This guide demonstrates the seamless combination of Django's features with Strawberry's simplicity, enabling developers to build robust and scalable APIs.