Moneytree

WIP
Icons/chart bar
Used 15 times
Created by
k kieran Klaassen

Usage
Last manual step:

  include Moneytree::Account
 

Run this command in your Rails app directory in the terminal:

rails app:template LOCATION="https://railsbytes.com/script/Xg8sOv"
Template Source

Review the code before running this template on your machine.

run "bundle add moneytree"
run "bundle install"
rails_command "g moneytree:install:migrations"
rails_command "db:migrate"
route "mount Moneytree::Engine => '/moneytree'"
initializer 'moneytree.rb', <<-CODE
Moneytree.setup do |config|
  # config.current_account = :current_account
  config.stripe_credentials = {
    api_key: ENV['STRIPE_API_KEY'],
    client_id: ENV['STRIPE_CLIENT_ID']
  }
  # config.oauth_redirect = '/welcome_back'
end
CODE
Comments

Sign up or Login to leave a comment.