Getting Started
Welcome to Plutonium.
Prerequisites
- Ruby 3.2+
- Rails 7.2+ (Rails 8 recommended)
- Node.js 18+ (for asset compilation)
- Basic familiarity with Ruby on Rails
Pick your starting point
New Rails app
The fastest way — use the application template:
bash
rails new myapp -a propshaft -j esbuild -c tailwind \
-m https://radioactive-labs.github.io/plutonium-core/templates/plutonium.rbThis sets up Rails + Propshaft + esbuild + TailwindCSS + Plutonium in one shot, with Rodauth ready to go.
Existing Rails app
For pre-existing apps, use base.rb (not plutonium.rb — that one runs full app bootstrap and clobbers history):
bash
bin/rails app:template \
LOCATION=https://radioactive-labs.github.io/plutonium-core/templates/base.rbTutorial
Want to learn by building? The 8-step tutorial walks through a complete blog app — auth, authorization, custom actions, nested resources, multi-portal.
After installation
- Create resources with
pu:res:scaffold(see Adding resources) - Connect them to a portal with
pu:res:conn - Customize the definition, policy, controller as needed
Reference for each layer: App, Resource, Behavior, UI, Auth, Tenancy, Testing.
