yshmarov / superails-rails6

Home Page:https://superails.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rails Style Guide

credentials.yml example

google:
  id: 123
  secret: 123

development:
  github:
    id: 123
    secret: 123
  stripe:
    id: pk_test_123
    secret: sk_test_123
    webhook: whsec_123
production:
  github:
    id: 123
    secret: 123
  stripe:
    id: pk_test_123
    secret: sk_test_123
    webhook: whsec_123
aws:
  ses:
    id: 123
    secret: 123

re-calculate counter cache (post has many comments, comments_count)

Post.find_each { |u| Post.reset_counters(u.id, :comments) }

letter opener on cloud9

printenv
export BROWSER=/dev/null
export LAUNCHY_DRY_RUN=true

create stripe prices

Stripe::Product.create(name: 'superails')

Stripe::Price.create(
  product: product,
  currency: 'usd',
  unit_amount: 900,
  recurring: {
    interval: 'month'
  },
  lookup_key: 'pro_monthly'
)

Stripe::Price.create(
  product: product,
  currency: 'usd',
  unit_amount: 9000,
  recurring: {
    interval: 'year'
  },
  lookup_key: 'pro_yearly'
)

About

https://superails.com


Languages

Language:Ruby 71.3%Language:HTML 22.5%Language:JavaScript 5.2%Language:SCSS 1.0%