Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harrison-broadbent/buybase-app
A Ruby on Rails app + Stripe connect integration to sell access to your Airtable, Notion or spreadsheets
https://github.com/harrison-broadbent/buybase-app
Last synced: about 1 month ago
JSON representation
A Ruby on Rails app + Stripe connect integration to sell access to your Airtable, Notion or spreadsheets
- Host: GitHub
- URL: https://github.com/harrison-broadbent/buybase-app
- Owner: harrison-broadbent
- Created: 2023-08-01T01:06:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-01T01:31:22.000Z (over 1 year ago)
- Last Synced: 2024-10-14T00:26:05.345Z (2 months ago)
- Language: HTML
- Homepage:
- Size: 193 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.
- If you're really interested, I wrote more about `bin/dev` and `foreman` here — https://railsnotes.xyz/blog/procfile-bin-dev-rails7
- 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 —