<p><span>Write a full stack Swift app and deploy it to production!</span></p><p><span>Kitura gives you the power to create production-ready RESTful APIs written in Swift. Coupled with the power of Docker and Kubernetes, you can take your Swift to the Server and beyond!</span></p><p><span>Server Side
Server Side Swift with Vapor: Building Web APIs and Web Apps in Swift
β Scribed by raywenderlich.com Tutorial Team, Tim Condon, Tanner Nelson, Jonas Schwartz, Logan Wright
- Publisher
- Razeware LLC
- Year
- 2020
- Tongue
- English
- Leaves
- 585
- Edition
- 3
- Category
- Library
No coin nor oath required. For personal study only.
β¦ Synopsis
The definitive book on building web apps and web APIs using Server-Side Swift with Vapor, written by the creators of the Vapor 4 framework.
β¦ Table of Contents
Acknowledgements
Book License
Book Source Code & Forums
What You Need
About This Book
Book Updates
About the Cover
Chapter 1: Introduction
About Vapor
How to read this book
Update Note
Chapter 2: Hello, Vapor
Vapor Toolbox
Building your first app
Swift Package Manager
Creating your own routes
Accepting data
Returning JSON
Troubleshooting Vapor
Where to go from here?
Chapter 3: HTTP Basics
Powering the web
HTTP in web browsers
HTTP in iOS apps
HTTP 2.0
REST
Why use Vapor?
Chapter 4: Async
Async
Working with futures
SwiftNIO
Where to go from here?
Chapter 5: Fluent & Persisting Models
Fluent
Acronyms
Saving models
Where to go from here?
Chapter 6: Configuring a Database
Why use a database?
Choosing a database
Configuring Vapor
Where to go from here?
Chapter 7: CRUD Database Operations
CRUD and REST
Fluent queries
Where to go from here?
Chapter 8: Controllers
Controllers
Getting started with controllers
Where to go from here?
Chapter 9: Parent-Child Relationships
Parent-child relationships
Creating a user
Setting up the relationship
Querying the relationship
Foreign key constraints
Where to go from here?
Chapter 10: Sibling Relationships
Sibling relationships
Creating a category
Creating a pivot
Querying the relationship
Removing the relationship
Where to go from here?
Chapter 11: Testing
Why should you write tests?
Writing tests with SwiftPM
Testing users
Testing the User API
Testing acronyms and categories
Testing on Linux
Where to go from here?
Chapter 12: Creating a Simple iPhone App, Part 1
Getting started
Viewing the acronyms
Viewing the users
Viewing the categories
Creating users
Creating acronyms
Where to go from here?
Chapter 13: Creating a Simple iPhone App, Part 2
Getting started
Editing acronyms
Deleting acronyms
Creating categories
Adding acronyms to categories
Where to go from here?
Chapter 14: Templating with Leaf
Leaf
Configuring Leaf
Rendering a page
Injecting variables
Using tags
Acronym detail page
Where to go from here?
Chapter 15: Beautifying Pages
Embedding templates
Bootstrap
Navigation
Tables
Serving files
Users
Sharing templates
Where to go from here?
Chapter 16: Making a Simple Web App, Part 1
Categories
Create acronyms
Editing acronyms
Deleting acronyms
Where to go from here?
Chapter 17: Making a Simple Web App, Part 2
Creating acronyms with categories
Displaying Categories
Editing acronyms
Where to go from here?
Chapter 18: API Authentication, Part 1
Passwords
Basic authentication
Token authentication
Database seeding
Where to go from here?
Chapter 19: API Authentication, Part 2
Updating the tests
Updating the iOS application
Where to go from here?
Chapter 20: Web Authentication, Cookies & Sessions
Web authentication
Cookies
Sessions
Where to go from here?
Chapter 21: Validation
The registration page
Basic validation
Custom validation
Displaying an error
Where to go from here?
Chapter 22: Google Authentication
OAuth 2.0
Imperial
Integrating with web authentication
Where to go from here?
Chapter 23: GitHub Authentication
Setting up your application with GitHub
Integrating with Imperial
Integrating with web authentication
Where to go from here?
Chapter 24: Password Reset & Emails
User email addresses
Integrating SendGrid
Setting up a password reset flow
Where to go from here?
Chapter 25: Adding Profile Pictures
Adding a picture to the model
Creating the form
Accepting file uploads
Displaying the picture
Where to go from here?
Chapter 26: Database/API Versioning & Migration
Modifying tables
Adding usersβ Twitter handles
Making categories unique
Seeding based on environment
Where to go from here?
Chapter 27: Caching
Cache storage
Example: PokΓ©dex
Where to go from here?
Chapter 28: Middleware
Vaporβs middleware
Example: Todo API
Where to go from here?
Chapter 29: WebSockets
Tools
A basic server
iOS project
Server word API
Session Manager
Endpoints
Observer endpoint
iOS follow location
Where to go from here?
Chapter 30: Advanced Fluent
Getting started
Soft delete
Timestamps
Enums
Lifecycle hooks
Nested models
Joins
Raw SQL
Where to go from here?
Chapter 31: Deploying with Heroku
Setting up Heroku
Where to go from here?
Chapter 32: Deploying with Docker
Docker Compose
Where to go from here?
Chapter 33: Deploying with AWS
Before starting
Setup your AWS instance
Install Swift
Where to go from here?
Chapter 34: Production Concerns
Using environments
Compiling with optimizations
Note on testing
Process monitoring
Reverse Proxies
Logging
Horizontal scalability
Sessions with Redis
Where to go from here?
Chapter 35: Microservices, Part 1
Microservices
The TIL microservices
The acronym microservice
Dealing with relationships
Authentication in Microservices
Where to go from here?
Chapter 36: Microservices, Part 2
The API gateway
Running everything in Docker
Where to go from here?
Conclusion
π SIMILAR VOLUMES
This book was written using Swift 2.0, Alamofire 3.1, Xcode 7, and iOS 9.<br><br>All code samples included.<br><br>This book is for:<br><br>- Software developers getting started with iOS but experienced in other languages<br><br>- Front-end devs looking to implement native UIs for iOS apps (no CSS,
<p><span>Learn to build faster web applications by implementing maintainable and pluggable APIs with Fastify</span></p><p><span>Purchase of the print or Kindle book includes a free PDF eBook</span></p><h4><span>Key Features</span></h4><ul><li><span><span>Written by Fastify's core contributors to hel
<p><span>Learn to build faster web applications by implementing maintainable and pluggable APIs with Fastify</span></p><p><span>Purchase of the print or Kindle book includes a free PDF eBook</span></p><h4><span>Key Features</span></h4><ul><li><span><span>Written by Fastify's core contributors to hel
<p><span>Learn to build faster web applications by implementing maintainable and pluggable APIs with Fastify</span></p><p><span>Purchase of the print or Kindle book includes a free PDF eBook</span></p><h4><span>Key Features</span></h4><ul><li><span><span>Written by Fastify's core contributors to hel