Server-Side Swift (Vapor Edition)
INCLUDES FREE UPDATES FOR SWIFT 6 AND BEYOND! Click here for full details.
TAKE SWIFT TO THE SERVER
Building web apps in Swift lets you re-use the skills you've already mastered, while being faster and safer than other languages. This course teaches you everything you need to craft your own server-side APIs and websites, all using Swift.
-
100% Swift 5.0: Don't waste time with out of date tutorials – here you can learn smart, powerful, and expressive Swift the way it was meant to be written.
-
100% Practical: You learn Swift while you make real web apps, which means you get to apply your new skills immediately and see them work in context.
-
100% Coverage: Master sessions, databases, templating, user authentication, and more – everything you need to build your own web apps.
-
100% Proven: I've taught thousands of people to build iOS apps, and I'll help you transfer your skills to the web and unleash Swift on your server.
Server-Side Swift teaches you Swift and web development through real-world projects. It's written entirely for Vapor 3 and Swift 5.0, so you're guaranteed to get the latest technology.
What's in the book?
There's a comprehensive Swift introduction for beginners, but the rest of the book is focused on building real web apps and websites using Swift.
Server-Side Swift includes 12 projects in total: eight apps, and four technique projects that focus on specific APIs. The projects are:
- Million Hairs: Get started coding server-side Swift by making a website using templates and routing.
- JSON Poll: Learn how to build a voting API using databases and JSON.
- Routing: Route web requests the smart way, with route groups and custom parameter types.
- Swift Fan Club: Build your own forum website while learning about sessions and encryption.
- Meme Machine: Learn how to process image uploads and work with the filesystem.
- Templates: Take a tour around the advanced features of the Leaf template engine.
- Barkr: Build a microblogging API using token-based authentication.
- ASCII art: Learn to fetch and manipulate remote data, and serve the results using ajax.
- Databases: Discover how SQL can help keep your data organized, efficient, and safe.
- Instant Coder: Add authentication to your site and let Vapor do all the hard work.
- AppleFanatic: Build your own CMS with Markdown support, and more.
- Testing: Learn how XCTest can help validate your back-end APIs in seconds.
While building projects, you'll learn all this and more:
- How to transfer your existing Swift knowledge to the server.
- Connecting to databases to read and write data.
- Creating server-side sessions for temporary storage.
- Building re-usable templates to separate your presentation from your logic.
- How to design, build, and test web APIs for your Swift apps.
- Authenticating users to create login screens.
- You'll also learn some HTML, JavaScript, and SQL along the way, as part of the Swift projects.
Server-Side Swift follows the same approach I used with Hacking with Swift: small, standalone projects that teach individual techniques starting from scratch, so you end up with a huge library of finished projects you can develop further or use as the base for something entirely new.
Download a free sample!
You can download the complete table of contents for this book here, or a 24-page sample PDF here.
Which framework is used?
The book is written for Vapor 3 and Swift 5.0. If you'd rather learn Server-Side Swift with Kitura you can find my book for that here.
What will I get?
You get all project tutorials as ePub, PDF, Amazon Kindle, and HTML, all without any DRM.
The Hacking with Swift guarantee
We want everyone to be happy with all the Hacking with Swift courses they buy, both now and in the future, which is why all our books come with free lifetime Swift updates and free bonus content with our Frequent Flyer Club, and we also encourage folks to join our Slack community to help solve problems.
However, if you aren't happy with a course you bought from us, we offer a 30-day No Questions Asked refund policy. This applies to all books and video courses purchased through Gumroad, which is our primary distributor. So, if you aren't happy with your purchase, if you changed your mind, or if you just bought the wrong thing by accident, we can refund your purchase up to 30 days after it was made.
Any other questions?
You can email me at paul@hackingwithswift.com or tweet me @twostraws, and I'll do my best to help.
You get the complete book with all projects in ePub, PDF, Amazon Kindle, and HTML, all DRM-free.