Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Hummingbird: Build Backend APIs in Swift
Rating: 4.4 out of 5(6 ratings)
65 students

Hummingbird: Build Backend APIs in Swift

Learn Hummingbird by building real REST APIs using Swift, Fluent, PostgreSQL, JWT, and async await
Created byMohammad Azam
Last updated 5/2026
English
English [Auto],

What you'll learn

  • Build RESTful APIs using Hummingbird and modern Swift
  • Understand routing, request handling, and middleware in a server-side Swift application
  • Design and structure backend applications using controllers and clean architecture principles
  • Work with databases using Fluent and PostgreSQL to perform real CRUD operations
  • Implement authentication and authorization using JWT in a Swift backend
  • Use async/await and structured concurrency to build efficient and scalable services
  • Handle errors, validation, and responses in a production-ready API
  • Connect your backend to real-world applications and understand how everything fits together

Course content

10 sections • 60 lectures • 7h 10m total length
  • Introduction1:48

    Learn to build rest APIs with Hummingbird framework in Swift, covering installation, route parameters, MVC, databases (raw SQL and Fluent), authentication with JWT and refresh tokens, and deployment on Railway.

  • Installing Hummingbird6:14

    Install Hummingbird by cloning the starter template, run the configure script to create a project, then execute swift run to start the local server at 127.0.0.1:8080.

  • Understanding the Folder Structure9:19

    Open and inspect the Hummingbird starter template, understand package.swift, config readers, and the app build with a hello route. Learn to auto-restart on code changes with watchexec to streamline development.

  • Automatically Restarting the Server Using watchexec4:32

    Install watchexec as a standalone tool to watch swift files and restart the server. Watch changes and run swift run automatically, keeping localhost 8080 updated during development.

Requirements

  • Basic knowledge of Swift programming (variables, functions, structs, classes)
  • Familiarity with Xcode and running Swift projects
  • No prior backend or server-side experience required
  • A Mac computer to run and build Swift applications
  • Willingness to learn how backend systems and APIs work

Description

Most Swift developers never explore what it’s like to build backend systems using Swift. This course changes that.

In this course, you’ll learn how to build fast, modern, and production-ready backend applications using Hummingbird, a lightweight and powerful server-side Swift framework built on top of SwiftNIO.

Instead of abstract theory, we focus on building a real backend step by step. You’ll learn how to design APIs, structure your code, and work with databases while taking full advantage of Swift’s async/await and structured concurrency.

We start from the ground up. Even if you’ve never written backend code before, you’ll understand how everything fits together.

In this course, you will:

  • Build REST APIs using Hummingbird

  • Understand routing, request handling, and middleware

  • Learn how Request and Context work and why they matter

  • Structure your application using controllers and clean patterns

  • Work with databases using Fluent and PostgreSQL

  • Perform CRUD operations with real data

  • Implement authentication using JWT

  • Handle errors and responses properly

  • Understand how Swift concurrency improves backend performance

You’ll also learn how Hummingbird compares to frameworks like Vapor, and why its design around structured concurrency makes it a great choice for modern backend development.

By the end of this course, you won’t just know how to write endpoints. You’ll understand how to design and build a complete backend system using Swift.

This course is ideal for:

  • iOS developers who want to move into backend development

  • Swift developers curious about server-side Swift

  • Developers who want a modern alternative to Node.js or Express

  • Anyone interested in building APIs using Swift

You should have basic knowledge of Swift. No backend experience is required.

If you’ve been writing Swift on the client side and want to expand your skills into backend development, this course will give you a solid, practical foundation.

Who this course is for:

  • iOS developers who want to expand their skills into backend development using Swift
  • Swift developers curious about building server-side applications and APIs
  • Developers who want to understand how backend systems work beyond the client side
  • Beginners interested in learning backend development without switching to another language
  • Anyone exploring alternatives to Node.js or Express and wants to stay within the Swift ecosystem