Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 1.06 KB

README.md

File metadata and controls

55 lines (35 loc) · 1.06 KB

Trailblazer::Pro::Rails

Installation

In your Rails' Gemfile.

gem "trailblazer-pro-rails"

Usage

  1. Get your API key from https://pro.trailblazer.to/settings

  2. Run our generator and enter your API key.

    $ rails g trailblazer:pro:install
    
    
  3. Run your operation via #WTF?.

    result = API::V1::Diagram::Operation::Update.WTF?(params: params)
  4. Click the [TRB PRO] link in your terminal and start debugging.

Our web debugger in action.

Note: we're currently playing with various invocation styles and at some point you might not even have to use Operation.wtf? anymore.

Testing

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.

Architecture

  • One Gemfile for all scenarios on test/dummies