Skip to content
subscrioPublic

About

Runnable C# and TypeScript examples for Subscrio how-to guides

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

Repository files navigation

Subscrio samples

Runnable C# and TypeScript examples for Subscrio how-to articles.

Start with the ASP.NET Core feature-entitlement example. It includes SQL Server LocalDB setup and an executable check of the real HTTP endpoint. The sample index tracks ready examples and the remaining planned articles.

For Node.js, run the TypeScript feature-entitlement example. It demonstrates boolean access checks, numeric allowances, and text-based support routing against PostgreSQL.

Repository layout

Each article gets its own folder under examples/, named for the implementation it teaches and the language or framework it uses. Most examples will be small .NET console or TypeScript Node applications. Samples that demonstrate an HTTP boundary include a minimal server; the Stripe renewal example includes the webhook endpoints it needs.

C# examples use Microsoft SQL Server LocalDB on Windows. TypeScript examples use PostgreSQL. Each sample documents its own prerequisites and connection setup.

examples/
  feature-entitlements-aspnet-core/
  feature-entitlements-typescript/
  ...
  stripe-subscription-renewals/
    dotnet/
    typescript/

These paths are reserved in the index and will be created as their samples are implemented. Each sample will include its own README, complete source, dependency declarations, configuration example, verification commands, and expected output. Samples must run from a clone of this repository without private workspace dependencies.

There are 32 single-language article samples and one Stripe renewal article with both languages: 33 article folders and 34 runnable applications when the series is complete.

Start here

Choose an entry marked ready in samples.json, open its folder, and follow that folder's README. Each README will identify the matching article and the versions tested. Until an entry is ready, its folder may not exist.

See CONTRIBUTING.md for sample requirements.

Subscrio

License

MIT. See LICENSE.

More runnable examples

Quotas, credits, and purchases

The ready entries in samples.json now include monthly quotas, billing-period metering, monthly credit grants, shared wallets, timed overrides, subscription composition, whole-app one-time purchases, and prepaid jobs. Each points to its dedicated runnable folder.

The Stripe renewal examples include passing C# and TypeScript runners with sandbox lifecycle fixtures. All 17 website article examples are available, including scheduled activation, feature bundles, and capacity packs.

About

Runnable C# and TypeScript examples for Subscrio how-to guides

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors