Skip to content
Bootstrap a paid R SaaS using Shiny, Firebase and Stripe
R JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
shiny
.gitattributes
.gitignore
README.md
build.R
diagram.R
firebase-login.png
firebase.Rproj
sequence_diagram.png

README.md

Creating a paid R SaaS with Firebase, Stripe and Shiny

Create a template for R users to create paid subscription services for Shiny Apps.

Many thanks to...

This project is derived from:

Payment strategy

Steps to Run the Shiny App

  1. Download or clone this repository
  2. Create a Firebase account, and in your new account create a project
  3. In your new Firebase project enable the login providers you want (currently supporting Google, GitHub and Twitter)

  1. Click the "Web Setup" button (top right in above screenshot) and copy your project's "apiKey", "authDomain", and "projectId" into the object defined in line 1 of the file "www/sof-auth.js"
  2. Run the Shiny app

The functions in global.R take care of communicating with the Firebase database and Stripe, but do not handle payments which is passed off to the payment app.

Running the payment app

The Shiny App will offer to link to the payment app via links in its free content after login. The payment app is a React Firebase hosted app that takes care of payment details. The user needs to log in to the apps with the same email/method and enter credit card details which are stored in Stripe and Firebase, accessed via the Shiny app to allow entry to paid content.

How to deploy the payment app

WIP - working demo here https://sunholo-bootstrap-dev.web.app/

You can’t perform that action at this time.