create-luff-app 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +0 -79
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -97,87 +97,8 @@ flowchart LR
97
97
  G --> H[Answer]
98
98
  ```
99
99
 
100
- ## 🧬 Architecture at a Glance
101
-
102
- ```mermaid
103
- %%{init: {'theme':'dark','themeVariables':{'fontSize':'19px'}}}%%
104
- graph LR
105
- FE[FE] --> GW[API GW]
106
- GW --> A[Auth]
107
- GW --> P[Posts]
108
- GW --> Pay[Pay]
109
- GW --> AI[AI]
110
- A --> AD[(AuthDB)]
111
- P --> PD[(PostsDB)]
112
- Pay --> PaD[(PayDB)]
113
- AI --> V[(Vector)]
114
- AI --> G[Gemini]
115
- ```
116
-
117
100
  ---
118
101
 
119
- ## 💳 Payment Service — Transaction Infrastructure
120
-
121
- <summary><b>🔍 Click to expand Payment Architecture</b></summary>
122
-
123
- ```mermaid
124
- %%{init: {'theme':'dark','themeVariables':{'fontSize':'10px'}}}%%
125
- sequenceDiagram
126
- participant U as User
127
- participant F as Frontend
128
- participant G as Gateway
129
- participant P as Payment
130
- participant R as Razorpay
131
- participant DB as PayDB
132
-
133
- U->>F: Buy
134
- F->>G: POST /create-order
135
- G->>P: Forward
136
- P->>R: Create Order
137
- R-->>P: order_id
138
- P-->>F: order_id
139
- F->>R: Checkout
140
- R-->>F: Callback
141
- F->>G: POST /verify
142
- G->>P: Forward
143
- P->>P: HMAC Check
144
- P->>DB: Save
145
- P-->>F: Verified
146
- ```
147
-
148
- | Route | Method | Auth | Description |
149
- |:---|:---:|:---:|:---|
150
- | `/payments/create-order` | POST | ✅ | Creates a Razorpay order with amount & currency |
151
- | `/payments/verify` | POST | ✅ | Verifies payment signature (HMAC-SHA256) |
152
- | `/payments/my-purchases` | GET | ✅ | Returns user's transaction history |
153
-
154
- ---
155
-
156
- ## 🔐 Auth Service — Stateless Security
157
-
158
- <summary><b>🔍 Click to expand Authentication Flow</b></summary>
159
-
160
- ```mermaid
161
- %%{init: {'theme':'dark','themeVariables':{'fontSize':'10px'}}}%%
162
- sequenceDiagram
163
- participant U as User
164
- participant F as Frontend
165
- participant G as Google
166
- participant A as Auth
167
- participant DB as AuthDB
168
-
169
- U->>F: Login
170
- F->>G: OAuth Popup
171
- G-->>F: Token
172
- F->>A: POST /auth/google
173
- A->>G: Verify
174
- G-->>A: Profile
175
- A->>DB: Upsert
176
- A->>A: Sign JWT
177
- A-->>F: JWT + User
178
- F->>F: Store JWT
179
- ```
180
-
181
102
  ## 🔑 Credentials Setup
182
103
 
183
104
  <details>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-luff-app",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "CLI to scaffold the Luff Microservices Boilerplate",
5
5
  "bin": {
6
6
  "create-luff-app": "bin/cli.js"