Hands-On Full-Stack Development with Swift

Hands-On Full-Stack Development with Swift PDF

Author: Ankur Patel

Publisher: Packt Publishing Ltd

Published: 2018-03-30

Total Pages: 350

ISBN-13: 1788626273

DOWNLOAD EBOOK →

Swift, with server-side coding, has become the future of native app development not only on iOS but for watchOS and tvOS. This book will show you how to create a native shopping list app along with a Full-Stack backend using Vapor. Vapor will serve as an API server for the mobile app and also as a web server to serve dynamic web pages to the ...

Hands-On Server-Side Web Development with Swift

Hands-On Server-Side Web Development with Swift PDF

Author: Angus Yeung

Publisher: Packt Publishing Ltd

Published: 2018-11-30

Total Pages: 392

ISBN-13: 1789345863

DOWNLOAD EBOOK →

Take advantage of using the same programming language for both server and client-side with this hands-on book for building web applications with Swift. Key FeaturesBuild a full-stack iOS and web applications using Swift, Vapor, and Kitura FrameworkLeverage ORM abstraction drivers to make queries to SQL databaseDevelop your very own containerized microservices with Swift, Docker and KubernetesBook Description This book is about building professional web applications and web services using Swift 4.0 and leveraging two popular Swift web frameworks: Vapor 3.0 and Kitura 2.5. In the first part of this book, we’ll focus on the creation of basic web applications from Vapor and Kitura boilerplate projects. As the web apps start out simple, more useful techniques, such as unit test development, debugging, logging, and the build and release process, will be introduced to readers. In the second part, we’ll learn different aspects of web application development with server-side Swift, including setting up routes and controllers to process custom client requests, working with template engines such as Leaf and Stencil to create dynamic web content, beautifying the content with Bootstrap, managing user access with authentication framework, and leveraging the Object Relational Mapping (ORM) abstraction layer (Vapor’s Fluent and Kitura’s Kuery) to perform database operations. Finally, in the third part, we’ll develop web services in Swift and build our API Gateway, microservices and database backend in a three-tier architecture design. Readers will learn how to design RESTful APIs, work with asynchronous processes, and leverage container technology such as Docker in deploying microservices to cloud hosting services such as Vapor Cloud and IBM Cloud. What you will learnBuild simple web apps using Vapor 3.0 and Kitura 2.5Test, debug, build, and release server-side Swift applicationsDesign routes and controllers for custom client requestsWork with server-side template enginesDeploy web apps to a host in the cloudEnhance web content with BootstrapManage user access using authentication frameworkDesign for API gatewayDevelop an iPhone app to work with web servicesDeploy your app as a microservice in a clusterDeploy Swift web services with a RESTful API designWho this book is for This book is about building professional web applications and web services using Swift and leveraging two popular Swift web frameworks: Vapor 3.0 and Kitura 2.5. We assume the readers to have some working knowledge of Swift programming language. The readers could be beginners of Swift programming, seasonal iOS or macOS developers, or software developers who want to work on practical Swift applications while learning the language itself. By the end of the book, you would be able to successfully create your own web applications and web services by leveraging the powerful ecosystem of Swift.

Hands-On Swift 5 Microservices Development

Hands-On Swift 5 Microservices Development PDF

Author: Ralph Kuepper

Publisher: Packt Publishing Ltd

Published: 2020-03-02

Total Pages: 380

ISBN-13: 1789534836

DOWNLOAD EBOOK →

Learn to design and deploy fully functioning microservices for your applications from scratch using Swift, Docker, and AWS Key FeaturesUnderstand server-side Swift development concepts for building your first microserviceBuild microservices using Vapor 4 and deploy them to the cloud using DockerLearn effective techniques for enhancing maintainability and stability of your Swift applicationsBook Description The capabilities of the Swift programming language are extended to server-side development using popular frameworks such as Vapor. This enables Swift programmers to implement the microservices approach to design scalable and easy-to-maintain architecture for iOS, macOS, iPadOS, and watchOS applications. This book is a complete guide to building microservices for iOS applications. You’ll start by examining Swift and Vapor as backend technologies and compare them to their alternatives. The book then covers the concept of microservices to help you get started with developing your first microservice. Throughout this book, you’ll work on a case study of writing an e-commerce backend as a microservice application. You’ll understand each microservice as it is broken down into details and written out as code throughout the book. You’ll also become familiar with various aspects of server-side development such as scalability, database options, and information flow for microservices that are unwrapped in the process. As you advance, you’ll get to grips with microservices testing and see how it is different from testing a monolith application. Along the way, you’ll explore tools such as Docker, Postman, and Amazon Web Services. By the end of the book, you’ll be able to build a ready-to-deploy application that can be used as a base for future applications. What you will learnGrasp server-side Swift development concepts using practical examplesUnderstand the microservices approach and why Swift is a great choice for building microservicesDesign and structure mobile and web applications using microservices architectureDiscover the available database options and understand which one to chooseScale and monitor your microservicesUse Postman to automate testing for your microservices APIWho this book is for The book is for iOS, iPadOS, and macOS developers and Swift programmers who want to understand how Swift can be used for building microservices. The book assumes familiarity with Swift programming and the fundamentals of the web, including how APIs work.

Hands-On Design Patterns with Swift

Hands-On Design Patterns with Swift PDF

Author: Florent Vilmart

Publisher: Packt Publishing Ltd

Published: 2018-12-24

Total Pages: 401

ISBN-13: 1789138515

DOWNLOAD EBOOK →

From learning about the most sought-after design patterns to a comprehensive coverage of architectural patterns and code testing, this book is all you need to write clean, reusable code Key FeaturesWrite clean, reusable and maintainable code, and make the most of the latest Swift version.Analyze case studies of some of the popular open source projects and give your workflow a huge boostChoose patterns such as MVP, MVC, and MVVM depending on the application being builtBook Description Swift keeps gaining traction not only amongst Apple developers but also as a server-side language. This book demonstrates how to apply design patterns and best practices in real-life situations, whether that's for new or already existing projects. You’ll begin with a quick refresher on Swift, the compiler, the standard library, and the foundation, followed by the Cocoa design patterns – the ones at the core of many cocoa libraries – to follow up with the creational, structural, and behavioral patterns as defined by the GoF. You'll get acquainted with application architecture, as well as the most popular architectural design patterns, such as MVC and MVVM, and learn to use them in the context of Swift. In addition, you’ll walk through dependency injection and functional reactive programming. Special emphasis will be given to techniques to handle concurrency, including callbacks, futures and promises, and reactive programming. These techniques will help you adopt a test-driven approach to your workflow in order to use Swift Package Manager and integrate the framework into the original code base, along with Unit and UI testing. By the end of the book, you'll be able to build applications that are scalable, faster, and easier to maintain. What you will learnWork efficiently with Foundation and Swift Standard libraryUnderstand the most critical GoF patterns and use them efficientlyUse Swift 4.2 and its unique capabilities (and limitations) to implement and improve GoF patternsImprove your application architecture and optimize for maintainability and performanceWrite efficient and clean concurrent programs using futures and promises, or reactive programming techniquesUse Swift Package Manager to refactor your program into reusable componentsLeverage testing and other techniques for writing robust codeWho this book is for This book is for intermediate developers who want to apply design patterns with Swift to structure and scale their applications. You are expected to have basic knowledge of iOS and Swift.

Server-Side Swift with Vapor (Third Edition)

Server-Side Swift with Vapor (Third Edition) PDF

Author: raywenderlich Tutorial Team

Publisher: Razeware LLC

Published: 2021-03-30

Total Pages: 646

ISBN-13: 9781950325276

DOWNLOAD EBOOK →

Learn How to Use Swift on the Server! Server Side Swift with Vapor introduces you to the world of server development with the added bonus of using Swift. You'll learn how to build APIs, web sites, databases, application servers and use off site hosting solutions such as Heroku and AWS. You'll use many of Vapor's modules such as Fluent, Vapor's ORM, and Leaf, the templating engine for building web pages. Who This Book Is For This book is for iOS developers who already know the basics of iOS and Swift development and want to transfer that knowledge to writing server based applications. Topics Covered in Server Side Swift with Vapor: - HTTP: Learn the basics of how to make requests to and from servers. - Fluent: Learn how to use Fluent to save and manage your models in databases. - Controllers: Learn how to use controllers to route your requests and responses. - Leaf: Learn how Vapor's Leaf module and its templating language allow you to build dynamic web sites directly. - Middleware: Learn how built-in Vapor modules can assist with common tasks such as validating users, settings required response headers, serving static files and more. One thing you can count on: After reading this book, you'll be prepared to write your own server-side applications using Vapor and, of course, Swift

Server Side Swift with Vapor

Server Side Swift with Vapor PDF

Author: Raywenderlich Com Tutorial Team

Publisher:

Published: 2018-08-20

Total Pages: 464

ISBN-13: 9781942878537

DOWNLOAD EBOOK →

Learn how to use Swift on the server! Server Side Swift with Vapor introduces you to the world of server development with the added bonus of using Swift. You'll learn how to build APIs, web sites, databases, application servers and use Vapor's very own Vapor Cloud to host your solutions off-site. You'll use many of Vapor's modules such as Fluent, Vapor's ORM, and Leaf, the templating engine for building web pages. Who This Book Is For This book is for iOS developers who already know the basics of iOS and Swift development and want to transfer that knowledge to writing server based applications. Topics Covered in Server Side Swift with Vapor HTTP Learn the basics of how to make requests to and from servers. Fluent Learn how to use Fluent to save and manage your models in databases. Controllers Learn how to use controllers to route your requests and responses. Leaf Learn how Vapor's Leaf module and its templating language allow you to build dynamic web sites directly. Middleware Learn how built-in Vapor modules can assist with common tasks such as validating users, settings required response headers, serving static files and more. One thing you can count on: After reading this book, you'll be prepared to write your own server-side applications using Vapor and, of course, Swift.

Server Side Swift with Kitura (Second Edition): Building Web APIs and Apps in Kitura

Server Side Swift with Kitura (Second Edition): Building Web APIs and Apps in Kitura PDF

Author: David Okun

Publisher:

Published: 2019-12-02

Total Pages: 344

ISBN-13: 9781942878964

DOWNLOAD EBOOK →

Write a full stack Swift app and deploy it to production! 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! Server Side Swift with Kitura will walk you through the development of EmojiJournal, a social network focused on your feelings. You'll learn how REST works, how to document your API, how to set up an ORM and user authentication, and even how to create a web front-end as well as an iOS frontend! You'll also learn about how to use powerful deployment tools to manage and run your API in any popular cloud that you choose! Who This Book Is For This book is for any developer who has had some exposure to Swift and wants to learn how to use those skills to write code that operates on the server. Topics Covered in Server Side Swift with Kitura KueryORM: Learn how to map your Swift API to PostgreSQL, a very popular database. The OpenAPI Spec: Learn how to self-document your API, and to provide a tool for rapidly testing and iterating on it. Stencil: Use an open-source templating tool to create a web-app for your Swift app on the Server. Authentication: Protect your Swift API from unwanted requests and learn how to apply multiple different types of protection. Security: Demystify the world of TLS and learn how to secure communications to and from your server. Deployment: Localhost isn't enough; push your server to production with Docker and Kubernetes. One thing you can count on: After reading this book, you'll be prepared to take advantage of all that Kitura has to offer! About the Tutorial Team The Tutorial Team is a group of app developers and authors who write tutorials at the popular website raywenderlich.com. We take pride in making sure each tutorial we write holds to the highest standards of quality. We want our tutorials to be well written, easy to follow, and fun. If you've enjoyed the tutorials we've written in the past, you're in for a treat. The tutorials we've written for this book are some of our best yet - and this book contains detailed technical knowledge you simply won't be able to find anywhere else.

Hacking with Swift

Hacking with Swift PDF

Author: Paul Hudson

Publisher:

Published: 2017-04-08

Total Pages: 434

ISBN-13: 9781521021989

DOWNLOAD EBOOK →

HACKING WITH SWIFT- Get started coding server-side Swift by making a website using templates and routing.CouchDB Poll: Learn how to build a voting API using CouchDB and JSON.Routing: Route web requests the smart way, with route chaining and regular expressions.Swift Fan Club: Build your own forum website while learning about CouchDB views, 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 Stencil template engine.Barkr: Build a microblogging API using MySQL and token-based authentication.ASCII art: Learn to fetch and manipulate remote data, and serve the results using ajax.Databases: Discover how MySQL can help keep your data organized, efficient, and safe.Instant Coder: Add GitHub authentication to your site and let Kitura do all the hard work.AppleFanatic: Build your own CMS with multiple Kitura servers, 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, using CouchDB and MySQL.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.Which framework is used?Now for the answer to a question you've probably been asking: the book uses IBM's Kitura framework for server-side Swift. That's not an accident:Apple introduced Kitura at WWDC 2016. It's rare to see third parties speak at WWDC, but IBM and Apple formed a close partnership to help drive Swift adoption forward and Kitura is part of that.IBM is putting huge resources behind the platform, and probably has the highest concentration of Swift developers outside of Cupertino.Kitura out-performs Vapor in benchmarks, including having significantly lower memory usage and latency.Most importantly, Kitura is very similar to Express.js, which is a massively popular development framework for JavaScript. This lets existing web developers migrate to Swift more easily.Even if Kitura isn't your preferred choice, the Swift Server APIs work group are looking at ways to build shared APIs for standard server functionality, so hopefully you'll learn lots of transferrable skills

Combine: Asynchronous Programming with Swift

Combine: Asynchronous Programming with Swift PDF

Author: Kodeco Team

Publisher:

Published: 2023-07-19

Total Pages: 0

ISBN-13: 9781950325900

DOWNLOAD EBOOK →

Dive into Combine!Writing asynchronous code can be challenging, with a variety of possible interfaces to represent, perform and consume asynchronous work - delegates, notification center, KVO, closures, etc. Juggling all of these different mechanisms can be somewhat overwhelming. Does it have to be this hard? Not anymore!In this book, you'll learn about Combine - Apple's framework to work with asynchronous events in a unified and reactive way that ensures your app is always up to date based on the latest state of its data.Who This Book Is ForThis book is for intermediate iOS developers who already know the basics of iOS and Swift development but who are interested in taking their app and state management to the next level by learning declarative/reactive programming.You'll also enjoy this book if you're interested in SwiftUI, since many of the reactive capabilities keeping your SwiftUI views up-to-date are built on top of Combine.Topics Covered in Combine: Asynchronous Programming With SwiftWhat & Why: Learn what Combine and reactive programming are, the problems they solve and how you can unify all of your asynchronous pieces of work.Operators: Learn how to compose, transform, filter and otherwise manipulate different pieces of asynchronous work using operators.In Practice: Gain knowledge on various topics and techniques you'll leverage when writing your own real-life apps. You'll then practice these techniques with actual hands-on apps and projects.SwiftUI: Discover how Combine is deeply rooted within SwiftUI, providing it with the ability to reactively update its views based on the state of your app.Advanced Combine: Once you've got a handle on the basics, you'll dive into advanced Combine topics such as Error Handling, Schedulers, and Custom Publishers.By the end of this book, you'll be a pro in building full-fledged apps using Combine's various abilities.