Coder Social home page Coder Social logo

kvalifik / subscription-foundation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bigcommerce/subscription-foundation

0.0 0.0 0.0 2.04 MB

Foundation for building custom subscription applications w/ BigCommerce

License: MIT License

JavaScript 1.49% TypeScript 92.93% CSS 0.34% Handlebars 5.24%

subscription-foundation's Introduction

BigCommerce Subscription Foundation

๐Ÿš€ Fast track builds of custom subscription experiences on the BigCommerce platform. Save 100s of hours.

๐Ÿ’ฐ Pre-integrated into Stripe Billing, including authentication, merchant onboarding, subscription product management, subscription creation, and customer-facing subscription management.

๐Ÿ’… Utilizes the Channels Toolkit to provide a natively integrated subscription channel that fits nicely within the BigCommerce control panel.

Product Management Storefront Widget
App Preview App Preview

Get started

Head to the Subscription Foundation article to begin!

Deploy with Vercel

Deploy with Vercel

Key areas of codebase

  • /backend
    • Where the auth and various API services live. These are uses within the internal API endpoints to keep routes secure and reach out to external APIs.
  • /prisma
    • Where the DB models and initial seed data lives. Prisma uses this to generate DB clients for the app.
  • /shared
    • Where the types and helper utilities are located.
  • /src/pages
  • /src/pages/api
    • Where the APIs for the app are managed.
    • Next.js docs: https://nextjs.org/docs/api-routes/introduction
      • /cart, /channel, and /product: Contains endpoints that proxy to BigCommerce APIs.`
      • /store: Contains endpoints that update app information in the DB.`
      • /stripe: Contains endpoints that proxy to Stripe APIs.`
      • /webhooks/index.ts: Contains the webhook listener for the "Order Created" BigCommerce event which is used to create the initial Stripe subscription.
  • /src/providers
    • Where the context providers used within pages and components live.

Contributing

Want to help expand this foundation? We'd love to collaborate! To kick off, here's a breakdown of items we've itemized as either potential improvements to the existing codebase or features worth adding.

  • Improvements:
    • Implement cart metafields to improve shopper UX (removes overloading of product name)
    • Move FE cart requests / calculations within subscription widget to be handled within single internal API endpoint
    • Centralize logging so it's easily turned on / off and connected into third-party logging services
  • Features:
    • Additional subscription use cases outside of 'Subscribe and Save'
    • Handling for more complex tax and shipping scenarios, changes occurs to price after initial subscription creation
    • Ability to see subscription information inline, within My Account -> Order section of storefront

Learn More

Additional Subscription Solutions

Check out the wide variety of subscription apps on the BigCommerce App Marketplace.

The BigCommerce Platform

Looking to help the world's leading brands and the next generation of successful merchants take flight? To learn more about developing on top of the BigCommerce platform, take a look at the following resources:

subscription-foundation's People

Contributors

becomevocal avatar bc-traciporter avatar dependabot[bot] 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.