In your Rails' Gemfile
.
gem "trailblazer-pro-rails"
-
Get your API key from https://pro.trailblazer.to/settings
-
Run our generator and enter your API key.
$ rails g trailblazer:pro:install
-
Run your operation via
#WTF?
.result = API::V1::Diagram::Operation::Update.WTF?(params: params)
-
Click the
[TRB PRO]
link in your terminal and start debugging.
Note: we're currently playing with various invocation styles and at some point you might not even have to use Operation.wtf?
anymore.
Currently, from the top directory, you need to run
$ rake test_1
This will test the generator on a new Rails app in isolation.
$ rake test_2
Tests if wtf?
works without any PRO configuration, but PRO is added.
$ rake test_3
Tests that the PRO editor import generator works.
- One
Gemfile
for all scenarios ontest/dummies