Git Product home page Git Product logo

cream's Introduction

C.R.E.A.M.

Payments Service For Runnable

Data Source Of Truth

Stripe is the source of truth for all most data handled by Cream. There are some exceptions where Cream will update data on Big Poppa based events from Stripe, specifically related to subscriptions (trials, active period, etc.).

Important: In the future, we'll be changing the source of truth for a data handled by Cream to be handled by an internal database. This data should enhance the data handled by Big Poppa in the same way we currently use Stripe metadata.

Testing

Testing commands

There are several testing commands:

  • npm test: Lints code and runs unit and functional tests
  • npm run test-unit: Runs only unit tests.
  • npm run test-integration: Runs only integration tests.
  • npm run test-integration-slow: Runs tests that take more than 2 min to complete (related to invoice creation). These don't run by default.

Testing Definitions

There are three types of tests in this project:

  • Unit tests: Tests units of codes and stubs out any external code.
  • Integration tests: Tests workers and routes against the Stripe API.

Future Changes

  1. Use khronos time.passed: #55
  2. Change source of truth for data to be an internal database (away from Stripe): #56

Reports

Invoice Reports

In order to generate invoice reports, you need a stripe live api key (found in Stripe site) and a github token. Then all you need to do is run this scripts with the following parameters:

STRIPE_API_KEY=??? GITHUB_TOKEN=??? node scripts/generate-invoices-report.js

This will generate a CSV file in the scripts directory with your CSV.

cream's People

Contributors

henrymollman avatar myztiq avatar podviaznikov avatar thejsj avatar und1sk0 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cream's Issues

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.