---
title: "Deploy Swift + Vapor + OpenAPI + Postgres"
description: "A starter Swift Server using Vapor, OpenAPI, and Postgres"
category: "Starters"
url: https://railway.com/deploy/swift-vapor-openapi-postgres
---

# Deploy Swift + Vapor + OpenAPI + Postgres

A starter Swift Server using Vapor, OpenAPI, and Postgres

**[Deploy Swift + Vapor + OpenAPI + Postgres on Railway](https://railway.com/template/swift-vapor-openapi-postgres)**

- **Creator:** Honza Dvorsky's Projects
- **Category:** Starters
- **Total deploys:** 26

## Template content

### swift-server-todos-tutorial

- **Source:** swiftlang/swift-server-todos-tutorial
- **Health check:** /health
- **Public domain:** Yes

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:17

## Documentation

# Deploy and Host Swift + Vapor + OpenAPI + Postgres on Railway

The Swift Server starter project from the [swift.org tutorial](https://github.com/swiftlang/swift-server-todos-tutorial), which shows how to deploy a Vapor service that uses OpenAPI and Postgres to build a simple TODOs application.

## About Hosting Swift + Vapor + OpenAPI + Postgres

The app uses a Postgres database to store the TODOs.

## Common Use Cases

- Getting started with Swift Server
- Creating a simple CRUD app in Swift

### Details

For the full tutorial, check out [https://github.com/swiftlang/swift-server-todos-tutorial](https://github.com/swiftlang/swift-server-todos-tutorial).

## Dependencies for

- Vapor
- Swift OpenAPI Generator
- Fluent
- Postgres

### Deployment Dependencies

- Postgres

## Why Deploy Swift + Vapor + OpenAPI + Postgres on Railway?


Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Swift + Vapor + OpenAPI + Postgres on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [caring-vibrancy](https://railway.com/deploy/caring-vibrancy) — Deploy and Host caring-vibrancy with Railway
- [Appsmith](https://railway.com/deploy/appsmith-1) — Low-code platform for internal tools, dashboards, and admin panels.

Open this page in a browser: https://railway.com/deploy/swift-vapor-openapi-postgres
