サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
アメリカ大統領選
testdriven.io
FastAPI with Async SQLAlchemy, SQLModel, and Alembic This tutorial looks at how to work with SQLAlchemy asynchronously with SQLModel and FastAPI. We'll also configure Alembic for handling database migrations. This tutorial assumes you have experience working with FastAPI and Postgres using Docker. Need help getting up to speed with FastAPI, Postgres, and Docker? Start with the following resources:
This article looks at some best practices to follow when writing Dockerfiles and working with Docker in general. While most of the practices listed apply to all developers, regardless of the language, a few apply to only those developing Python-based applications. -- Dockerfiles: Use Multi-stage Builds Order Dockerfile Commands Appropriately Use Small Docker Base Images Minimize the Number of Laye
Writing clean, maintainable code is a challenging task. Fortunately, there are many patterns, techniques, and reusable solutions available to us to make achieving that task much easier. Dependency Injection is one of those techniques, which is used to write loosely-coupled yet highly-cohesive code. In this article, we'll show you how to implement Dependency Injection as you develop an app for plot
Usernames and passwords are not encrypted. Instead, the username and password are concatenated together using a : symbol to form a single string: username:password. This string is then encoded using base64. >>> import base64 >>> >>> auth = "username:password" >>> auth_bytes = auth.encode('ascii') # convert to bytes >>> auth_bytes b'username:password' >>> >>> encoded = base64.b64encode(auth_bytes)
Writing asynchronous code gives you the ability to speed up your application with little effort. Django versions >= 3.1 support async views, middleware, and tests. If you haven't already experimented with async views, now's a great time to get them under your belt. This tutorial looks at how to get started with Django's asynchronous views. If you're interested in learning more about the power behi
In this tutorial, we'll look at how to deploy a Django app to AWS ECS (via Fargate) with Terraform. Dependencies: Django v4.2.7 Docker v24.0.6 Python v3.12.0 Terraform v1.5.7 Contents Objectives By the end of this tutorial, you will be able to: Explain what Terraform is and how you can use it to write infrastructure as code Utilize the ECR Docker image registry to store images Create the required
This article takes a look at how to speed up your Docker-based builds on CircleCI, GitLab CI, and GitHub Actions with Docker layer Caching and BuildKit. Contents Docker Layer Caching Docker caches each layer as an image is built, and each layer will only be re-built if it or the layer above it has changed since the last build. So, you can significantly speed up builds with Docker cache. Let's take
$ mkdir django-on-docker && cd django-on-docker $ mkdir app && cd app $ python3.11 -m venv env $ source env/bin/activate (env)$ (env)$ pip install django==4.2.3 (env)$ django-admin startproject hello_django . (env)$ python manage.py migrate (env)$ python manage.py runserver Feel free to swap out virtualenv and Pip for Poetry or Pipenv. For more, review Modern Python Environments. Navigate to http:
Obviously, the main focus here will be on CSS Grid, but it's important to note that many of these methods work really well -- and well together, for that matter -- for specific cases. Grid semi-recently got some amazing browser compatibility updates. With this adoption comes an opportunity for developers to utilize overlooked CSS features such as calc() and minmax() methods, and thefr measurement.
React Hooks - A deeper dive featuring useContext and useReducer The main purpose of this article is to get an understanding of useContext and useReducer and how they can work together to make React applications and their state management clean and efficient. The new Hooks API allows for some amazing features to be accessed across React applications which can potentially eliminate the need for stat
In this tutorial, we'll first take a look at Kubernetes and container orchestration in general and then we'll walk through a step-by-step tutorial that details how to deploy a Flask-based microservice (along with Postgres and Vue.js) to a Kubernetes cluster. This is an intermediate-level tutorial. It assumes that you have basic working knowledge of Flask and Docker. Review the Test-Driven Developm
The following is a step-by-step walkthrough of how to set up a basic CRUD app with Vue and Flask. We'll start by scaffolding a new Vue application and then move on to performing the basic CRUD operations through a back-end RESTful API powered by Python and Flask. Final app: Main dependencies: Vue v3.2.47 Node v20.0.0 npm v9.6.4 Flask v2.2.3 Python v3.11.3 Contents Objectives By the end of this tut
Learn to build high-quality web apps with best practices. Our in-depth courses teach you how real-world applications are built, using Test-Driven Development (TDD) along with the latest tools, technologies, and frameworks. In this course, you'll learn how to set up a development environment with Docker in order to build and deploy a microservice powered by Python and Flask. You'll also apply the p
このページを最初にブックマークしてみませんか?
『Test-Driven Development, Microservices, Web Development Courses from TestDriv...』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く