/turbo-native-example

An example Turbo Native app for starting blog posts on Masilotti.com.

Primary LanguageRubyMIT LicenseMIT

Turbo Native example

This repo contains an example Turbo Native app for Masilotti.com. It purposely does very little – articles build on this to demonstrate how to use the framework.

  • The ios/ directory contains the Xcode project with a minimum Turbo Native integration.
  • The rails/ directory contains a companion Rails app with a single Article record.

Getting started

First, setup and run the Rails server.

Run the Rails server

Install the following:

  • Ruby 3.2.2
  • postgresql - brew install postgresql
  • node - brew install node
  • Yarn - brew install yarn

Then, run the setup script and start the server.

  1. bin/setup
  2. bin/dev

Run the iOS app

Once the server is running you can start the iOS app.

  1. Download and install Xcode from the App Store
  2. Open ios/Turbo Native Example.xcodeproj
  3. Run the app via Product → Run in Xcode

Features as branches

Each article or video has its own branch. After cloning the repo, checkout the corresponding branch to see the finished code.

  • SwiftUI views - swiftui branch