Entries by mark

, , ,

Create AI Chatbot with OpenAI, Django and React

In this tutorial you’ll learn how to create a chat bot using OpenAI, Django and React. By the end of the tutorial, you will have a functional Chatbot that looks like this: Prerequisites This tutorial starts where the last tutorial left off: How to add Async Tasks to Django with Celery. Want to learn how […]

,

How to add Async Tasks to Django with Celery

In this tutorial you’ll learn how to setup Celery on a Django project for executing async tasks. First, I’ll explain what asynchronous tasks are and why you might use them. If you already know, feel free to skip the faff and jump right to the steps below. What are Asynchronous Tasks? Asynchronous (or async for […]

, ,

How to use PGAdmin with a Dockerized Postgres Database

In this guide, I’ll explain how you can use PGAdmin to connect to a PostgreSQL database running in Docker. This tutorial uses an example project setup with Django. However, it would be applicable to any service that uses PostgreSQL running with Docker Compose. Prerequisites You’ll need the following: Run Existing Project Start by cloning the […]

,

How to Dockerize a React Project

In this tutorial I’ll explain how to set up a new React project using Docker and Vite so that auto reloading works. Prerequisites You’ll need the following: Resources The full and final version of this tutorial can be found here: https://github.com/LondonAppDeveloper/dockerize-react Creating React Project First, we’ll create a new React project. Open your terminal and […]

Docker vs Docker Compose, what’s the difference?

This is a question asked by a student who is taking our course: Build a Backend REST API with Python & Django – Advanced. Question A student asked: What is the difference between Docker and Docker Compose? Why do we need both a Dockerfile and docker-compose.yml file in the project? Answer When working with Docker, […]

, , ,

Deploying Django with Docker Compose

There are a number of ways you can deploy a Django app. One of the simplest is by running the app using Docker Compose directly on a Linux virtual machine. The benefits to this approach are: Fastest and easier to get up and running. Define your deployment configuration with your code. Consistent development and production […]

,

Fixing toomanyrequests error when using Docker with Travis-CI

Students of our course Build a Backend REST API with Python & Django – Advanced have recently been getting the following issue when pulling Docker images in Travis-CI jobs: The problem occurs because Docker is now rate limiting image pulls. There is a limit of 100 pulls for anonymous users, which are tracked via their […]