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.
- Hono
- SQLite
- Drizzle ORM
- Paystack Subscription
- 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
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 schemaroutes: Each feature is categorised by routes that is then exported for usage in the main Hono classschema: Contains basic Zod schema request validation