Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Docs

# Builds the docs site on every PR that touches it, and deploys it to
# Cloudflare (docs.paywright.dev-parikh.com) on pushes to main. The API
# reference is generated from packages/template/openapi.json, so a spec
# change redeploys the docs too.
on:
push:
branches: [main]
paths:
- packages/docs/**
- packages/template/openapi.json
- .github/workflows/docs.yml
pull_request:
branches: [main]
paths:
- packages/docs/**
- packages/template/openapi.json
- .github/workflows/docs.yml

concurrency:
group: docs-${{ github.ref }}
cancel-in-progress: true

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5

- uses: actions/setup-node@v5
with:
node-version: 22
cache: npm

- name: Install dependencies
run: npm ci

- name: Build docs
run: npm run build --workspace packages/docs
env:
ASTRO_TELEMETRY_DISABLED: 1

- name: Deploy to Cloudflare
# Needs repo secrets CLOUDFLARE_API_TOKEN (Edit Cloudflare Workers
# template, scoped to this account and the dev-parikh.com zone) and
# CLOUDFLARE_ACCOUNT_ID
if: github.event_name == 'push'
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
workingDirectory: packages/docs
wranglerVersion: '4.151.2'
command: deploy
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

Scaffold a production-ready **Stripe payment microservice** in one command.

📖 **Documentation: [docs.paywright.dev-parikh.com](https://docs.paywright.dev-parikh.com)**

```bash
npx create-paywright-app my-payment-service
```
Expand Down Expand Up @@ -123,15 +125,17 @@ a Python, Go, or any-language client the same way — see
packages/
├── cli/ the npx scaffolder (published to npm as create-paywright-app)
├── template/ the NestJS service that gets scaffolded
└── sdk/ typed TypeScript client generated from the service's OpenAPI
spec (published to npm as @paywright/sdk)
├── sdk/ typed TypeScript client generated from the service's OpenAPI
│ spec (published to npm as @paywright/sdk)
└── docs/ documentation site (Starlight), deployed to
docs.paywright.dev-parikh.com
```

## Developing from source

```bash
git clone <this-repo>
cd stripe-payment-nestjs
git clone https://github.com/devpparikh/paywright.git
cd paywright
npm install # workspace root installs both packages

# run the service template directly
Expand Down
Loading
Loading