harrison-broadbent / buybase-app

A Ruby on Rails app + Stripe connect integration to sell access to your Airtable, Notion or spreadsheets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Buybase — Sell access to your Airtable or Notion

View the website — https://buybase.io

Note: The main app isn't running anymore, just the marketing website

Features

  • Uses the Stripe API gem to handle payments via Stripe Connect (see app/models/dataset.rb)
    • Uses Stripe Connect to handle payments between customers and sellers, with Buybase taking a 5% fee from all transactions
  • Product page analytics, so sellers can see statistics on their products
  • Gated access to datasets, protected via unique access codes (generated with the haikunator gem)
  • Access code management, so sellers can directly add or remove access codes from their datasets

Running locally

  • If you happen to be an interested EM from HotDoc, it might be fun to try running Buybase locally.
  • The bin/dev script should handle most things — just run bin/dev and the web app and css server will start.
  • You also should run rails db:create and rails db:migrate to set up the database correctly (there are no seeds to run).
  • To test the payments flow, you'll also need to add a Stripe :api_key into your Rails credentials with rails credentials:edit, such that we can access it with Rails.application.credentials.stripe[:api_key].
  • (There might be more... I worked on Buybase earlier this year, but have since been working on other things, namely RailsNotes).
  • Note: unfortunately, when you do get the app running, you wont be able to login — the Google Oauth setup isn't working anymore. But you can comment out the before_action authenticate_user! in the home and dataset controllers to see this —
Screenshot 2023-08-01 at 11 28 31 am

About

A Ruby on Rails app + Stripe connect integration to sell access to your Airtable, Notion or spreadsheets


Languages

Language:HTML 50.9%Language:Ruby 46.4%Language:JavaScript 1.9%Language:CSS 0.6%Language:Shell 0.2%