├── .env.example ├── .gitignore ├── README.md ├── engine.png ├── package.json ├── prisma └── schema.prisma ├── scripts ├── clerkCreate.ts └── clerkUpdate.ts ├── src ├── actions │ ├── billing.ts │ └── user.ts ├── app.ts ├── constants.ts ├── controllers │ ├── billing.ts │ ├── clerkWebhooks.ts │ ├── common │ │ ├── auth.ts │ │ └── errorHandler.ts │ ├── gpt.ts │ └── stripeWebhooks.ts ├── prisma.ts ├── server.ts ├── stripeClient.ts └── types │ └── billing.ts └── tsconfig.json /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/README.md -------------------------------------------------------------------------------- /engine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/engine.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/package.json -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /scripts/clerkCreate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/scripts/clerkCreate.ts -------------------------------------------------------------------------------- /scripts/clerkUpdate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/scripts/clerkUpdate.ts -------------------------------------------------------------------------------- /src/actions/billing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/src/actions/billing.ts -------------------------------------------------------------------------------- /src/actions/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/src/actions/user.ts -------------------------------------------------------------------------------- /src/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/src/app.ts -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/src/constants.ts -------------------------------------------------------------------------------- /src/controllers/billing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/src/controllers/billing.ts -------------------------------------------------------------------------------- /src/controllers/clerkWebhooks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/src/controllers/clerkWebhooks.ts -------------------------------------------------------------------------------- /src/controllers/common/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/src/controllers/common/auth.ts -------------------------------------------------------------------------------- /src/controllers/common/errorHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/src/controllers/common/errorHandler.ts -------------------------------------------------------------------------------- /src/controllers/gpt.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/src/controllers/gpt.ts -------------------------------------------------------------------------------- /src/controllers/stripeWebhooks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/src/controllers/stripeWebhooks.ts -------------------------------------------------------------------------------- /src/prisma.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/src/prisma.ts -------------------------------------------------------------------------------- /src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/src/server.ts -------------------------------------------------------------------------------- /src/stripeClient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/src/stripeClient.ts -------------------------------------------------------------------------------- /src/types/billing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/src/types/billing.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Engine-Labs/gpt-billing-template/HEAD/tsconfig.json --------------------------------------------------------------------------------