Deploy Swift + Vapor + OpenAPI + Postgres
A starter Swift Server using Vapor, OpenAPI, and Postgres
swift-server-todos-tutorial
Just deployed
Just deployed
/var/lib/postgresql/data
Deploy and Host Swift + Vapor + OpenAPI + Postgres on Railway
The Swift Server starter project from the swift.org 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.
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.
Template Content
swift-server-todos-tutorial
swiftlang/swift-server-todos-tutorial