Skip to content

PaystackOSS/sample-subscription-backend

Repository files navigation

sample-subscription-backend

A simple backend to serve as a reference when building subscription or recurring bill payment apps with Paystack. You can check out the documentation to learn more.

Tech stack

Set up

  • Clone the repo:
    git clone [email protected]:PaystackOSS/sample-subscription-backend.git
  • Install dependencies
    pnpm install
    
  • Set up the DB
    pnpm db:apply
  • Start server
    pnpm dev
  • Test endpoints
    open http://localhost:3030

Code structure

The code has a simple structure where all configuration files are in the top level and core logic resides on the src directory:

  • db: Contains the DB schema
  • routes: Each feature is categorised by routes that is then exported for usage in the main Hono class
  • schema: Contains basic Zod schema request validation

About

A simple subscription backend built with Paystack

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published