Coder Social home page Coder Social logo

isaacharrisholt / basejump Goto Github PK

View Code? Open in Web Editor NEW

This project forked from usebasejump/basejump

0.0 0.0 0.0 864 KB

Teams, personal accounts, permissions and billing for your Supabase app

Home Page: https://usebasejump.com

License: MIT License

Shell 0.26% TypeScript 35.67% PLpgSQL 64.07%

basejump's Introduction

Basejump

If you're looking for the original Basejump which included a NextJS SaaS starter template, check out the legacy repo.

Basejump adds personal accounts, team accounts, permissions and billing support to Supabase Auth.

Learn more at usebasejump.com.

Features

  • Personal accounts: Every user that signs up using Supabase auth automatically gets their own personal account. Billing on personal accounts can be enabled/disabled.
  • Team accounts: Team accounts are billable accounts that can be shared by multiple users. Team accounts can be disabled if you only wish to allow personal accounts. Billing on team accounts can also be disabled.
  • Permissions: Permissions are handled using RLS, just like you're used to with Supabase. Basejump provides convenience methods that let you restrict access to rows based on a user's account access and role within an account
  • Billing: Basejump provides out of the box billing support for Stripe, but you can add your own providers easily. If you do, please consider contributing them so others can benefit!
  • Testing: Basejump is fully tested itself, but also provides a suite of testing tools that make it easier to test your own Supabase functions and schema. You can check it out at database.dev/basejump/supabase_test_helpers. You do not need to be using Basejump to use the testing tools.

Quick Start (recommended)

Check out the getting started guide at usebasejump.com.

Contributing

Yes please! Here's how you can get started locally

Initialize Supabase

    supabase init && supabase start

Install dependencies using dbdev

  1. Install dbdev according to instructions on database.dev.
  2. Install supabase_test_helpers
    select dbdev.install('basejump-supabase_test_helpers');

Install local version of basejump_core

dbdev install --connection postgres://postgres:postgres@localhost:54322/postgres --path .

Enable basejump_core

    CREATE EXTENSION IF NOT EXISTS basejump_core with schema extensions;

Make sure tests can run

    supabase test db

Add your changes and write tests.

Make sure you're following the database.dev upgrade guidelines. you should NEVER be updating/changing existing version files. All changes should have valid migration files for postgres extensions. I'll try to flesh this section out more later.

basejump's People

Contributors

tiniscule avatar cayblood avatar knajjars avatar markusremplbauer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.