Jumpstart Pro now ships with a built-in API client generator. You can use it to create your own API clients for integrations with any API you would like.
As developers, it's easy to reach for Rubygems, but each dependency we add makes it harder to maintain your application. We've found that we need to fork most API Rubygems to fix bugs or implement API features that aren't supported yet in the library.
Now, our default is to build an API client ourselves. It's easy to maintain, doesn't break from external changes, and only implements the features we need. We've made this available to Jumpstart Pro users to more easily take advantage of building their own API clients.
It's customizable so you can override the authentication or response parsers to work however you need.
You can generate an API client using the following command:
rails g api_client OpenAi
This will generate your API client and test file. You can then implement methods for API endpoints.
Here's an example integrating with the OpenAI API:
class OpenAiClient < ApplicationClient
BASE_URI = "https://api.openai.com/v1"
def models
get("/models")
end
def completions
post("/completions", body: {model: "text-davinci-003", prompt: "Say this is a test", max_tokens: 7})
end
end
We're moving the forum for Jumpstart Pro over to Discord and the GitHub repositories. We recommend using the GitHub Discussions so other people can find your questions and answers, but Discord is also a great option if you need some quick help on anything. 👍
We've renamed the master branch to "main" now for Jumpstart Pro Rails. This matches the iOS and Android repos as well as GitHub's default branch naming.
To update your local clones, you can run the following:
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
We've upgraded from Font Awesome 5 to 6! Out of the box, you can use any of the free Font Awesome icons. To use Font Awesome's Pro icons, you'll simply swap out one line of code and that's it. 🔥
With Heroku's issues lately, a lot of users have been looking for alternatives. We've added a render.yaml file to quickly get you started deploying Jumpstart Pro with Render.
You can now build Android apps with Jumpstart Pro! It uses Hotwire to embed your web application and makes it easy to extend with Jetpack Compose and Kotlin to provide native Android functionality.
We've updated the scaffold generator in Jumpstart Pro Rails to take full advantage of Hotwire. New records will be added, updated, and removed in realtime as actions are taken.
We've updated Jumpstart Pro to the brand new Rails 7.0 release! This version has been tested with Jumpstart Pro since September and includes many great new features. Read more about the Rails 7.0 changes.
As part of this release, we've replaced attr_encrypted with the built-in Encryption in Rails 7. This keeps our code simpler and better supported in the long run.
Ruby 3.1 only 9 days away, so it's going to be an exciting December. I hope you enjoy the new changes!
The new TailwindCSS version just dropped today (see the announcement) and we've updated Jumpstart Pro to use it. This is primarily internal changes inside TailwindCSS, but has a few small changes that might affect your application.
We've migrated to using Pretender (another wonderful Andrew Kane gem) instead of Devise Masquerade. This fixes and improves some the impersonation functionality for an even better experience.
We've added Pundit for authorization and preconfigured it to work with Account Users so you can easily check roles for the current user and account. Scaffolds have also been updated to include authorization examples.
Joe Masilotti and I have been working hard over the last couple months to bring you Jumpstart Pro iOS. It builds upon your Rails application to bring you a native iOS app. Authentication, Push Notifications, and more are all handled for you and it's easy to override web views with native ones. Check out Jumpstart Pro iOS