Skip to content

Latest commit

 

History

History
36 lines (33 loc) · 1.04 KB

File metadata and controls

36 lines (33 loc) · 1.04 KB

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 git@github.com: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