Hotwire Native for Rails Developers: Build Native Mobile Apps Using Your Server
暫譯: Rails 開發者的 Hotwire Native:使用伺服器構建原生行動應用程式
Masilotti, Joe
- 出版商: Pragmatic Bookshelf
- 出版日期: 2025-09-23
- 售價: $2,180
- 貴賓價: 9.5 折 $2,071
- 語言: 英文
- 頁數: 270
- 裝訂: Quality Paper - also called trade paper
- ISBN: 9798888651513
- ISBN-13: 9798888651513
-
相關分類:
Cross-Platform
海外代購書籍(需單獨結帳)
商品描述
You know how to create a great web app using Rails. But how do you also create native apps for iOS and Android when you don't want to reimplement everything in Swift and Kotlin? Fully native iOS and Android apps are expensive to build and even more expensive to maintain. And, of course, you have to deal with the app stores.
Hotwire Native builds hybrid mobile apps by rendering HTML directly from your Rails server. Build your screens once and deploy across web, iOS, and Android simultaneously. No repackaging apps or resubmitting to app stores.
You'll build a hiking tracker app on iOS and Android. Start by creating a bare-bones app and build new features into it with each new chapter. Set up remote path configuration to navigate gracefully and route forms efficiently. Determine when it makes sense to upgrade your screens to native. Build native components and screens to enhance the apps progressively, with full access to iOS and Android SDKs and APIs, such as push notifications and native maps. And deploy to physical devices for beta testing.
You'll drive the content and behavior of your apps directly from the server, without changing any native code. And you'll keep your business logic in one place, making your apps more resilient to future changes and easier to maintain. Along the way, you'll learn just enough Swift and Kotlin to confidently build functional, user-friendly mobile apps.
What You Need:
macOS with Ruby 3.4.2, SQLite, Xcode 16, and Android Studio Meerkat.
商品描述(中文翻譯)
創建直觀且易於維護的行動應用程式,利用您已經熟悉的技術 Ruby on Rails。將 Hotwire Native 添加到您的新 Rails 應用程式或現有應用程式中,開始創建原生的 iOS 和 Android 應用程式。您將學習如何增強您的應用程式,逐步添加原生組件和畫面。將您現有或新的網頁應用程式帶給更廣泛的行動受眾,並使應用程式在其平台上看起來和感覺像是原生的。
您知道如何使用 Rails 創建出色的網頁應用程式。但是,當您不想在 Swift 和 Kotlin 中重新實現所有內容時,如何同時創建 iOS 和 Android 的原生應用程式呢?完全原生的 iOS 和 Android 應用程式建造成本高昂,維護成本更高。而且,您還必須處理應用商店的問題。
Hotwire Native 通過直接從您的 Rails 伺服器渲染 HTML 來構建混合行動應用程式。一次構建您的畫面,並同時在網頁、iOS 和 Android 上部署。無需重新打包應用程式或重新提交到應用商店。
您將在 iOS 和 Android 上構建一個健行追蹤應用程式。首先創建一個基本的應用程式,然後在每一章中添加新功能。設置遠端路徑配置,以優雅地導航並有效地路由表單。確定何時升級您的畫面為原生畫面是合理的。構建原生組件和畫面,以逐步增強應用程式,並完全訪問 iOS 和 Android 的 SDK 和 API,例如推播通知和原生地圖。並將其部署到實體設備進行測試。
您將直接從伺服器驅動應用程式的內容和行為,而無需更改任何原生代碼。您將把業務邏輯集中在一個地方,使您的應用程式對未來的變更更具韌性,並更易於維護。在此過程中,您將學習足夠的 Swift 和 Kotlin,以自信地構建功能完善、使用者友好的行動應用程式。
您需要的環境:
macOS,搭配 Ruby 3.4.2、SQLite、Xcode 16 和 Android Studio Meerkat。