Vapor 3 + Swift 4
"Server Side Swift with Vapor"Prerequisites | Project Materials | API + Web Template | Resources
The "Server Side Swift with Vapor" video tutorial series is based on PostgreSQL, Swift 4 & Vapor 3. A completed project for the tutorial series is provided at raywenderlich/vapor-til.
The vapor-til-sqlite project replaces PostgreSQL with SQLite.
▴
PrerequisitesInstall Xcode 10 ⇗. Swift 4.2 installs as part of Xcode 10. Launch Xcode to complete an initial installation.
Install Homebrew ⇗
Verify Swift Installation
# review script
curl -sL check.vapor.sh # review script
# run script
eval "$(curl -sL check.vapor.sh)"
# ✅ Xcode 10 is compatible with Vapor 2.
# ✅ Xcode 10 is compatible with Vapor 3.
#
# ✅ Swift 4.2 is compatible with Vapor 2.
# ✅ Swift 4.2 is compatible with Vapor 3.
Install Vapor
Add Vapor Homebrew tap repository. Install Vapor's toolbox and dependencies. The Vapor Toolbox provides a CLI tool for creating new projects.
brew tap --full vapor/homebrew-tap
brew update
brew info vapor
brew install vapor
▴
Resources- Codingpedia: How to test a REST api from command line with curl ⇗
- Lob REST API documentation:
curl
examples ⇗ - Medium: Deploying a Vapor web app on DigitalOcean ⇗ Benjamin Johnson
- Medium: Server side SWIFT: Vapor, MySQL, and NGINX with SSL-cert running on Ubuntu instance from DigitalOcean ⇗ Todd Shifflett
- SQLite Studio ⇗ open source database manager
API Tools
- FRequest home page ⇗, github ⇗ open source
- HTTPie home page ⇗, github ⇗ open source
- Postman ⇗ closed source. free or paid "Pro"
- RESTed: macOS App Store ⇗, home page ⇗ free, closed source
Deployment
Front-end Frameworks