You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- When creating Auth pages, use the LoginForm and SignupForm components provided by Wasp
30
+
✓ import { LoginForm } from 'wasp/client/auth'
31
+
- Wasp takes care of creating the user's auth model id, username, and password for a user, so a user model DOES NOT need these properties
32
+
✓ model User { id Int @id @default(autoincrement()) }
33
+
34
+
// Wasp Dependencies
35
+
- Do NOT add dependencies to 'main.wasp'
36
+
- Install dependencies via 'npm install' instead
37
+
38
+
// Wasp
39
+
- Use the latest Wasp version, ^0.16.0
40
+
- Always use typescript for Wasp code.
41
+
- When creating Wasp operations (queries and actions) combine them into an operations.ts file within the feature directory rather than into separate queries.ts and actions.ts files
42
+
43
+
// React
44
+
- Use relative imports for other react components
45
+
- If importing a function from an operations file, defer to the wasp import rules
# NOTE: you can let Wasp set up your Postgres DB by running `wasp start db` in a separate terminal window.
2
+
# then, in a new terminal window, run `wasp db migrate-dev` and finally `wasp start`.
3
+
# If you use `wasp start db` then you DO NOT need to add a DATABASE_URL env variable here.
4
+
# DATABASE_URL=
5
+
6
+
# For testing, go to https://dashboard.stripe.com/test/apikeys and get a test stripe key that starts with "sk_test_..."
7
+
STRIPE_API_KEY=sk_test_...
8
+
# After downloading starting the stripe cli (https://stripe.com/docs/stripe-cli) with `stripe listen --forward-to localhost:3001/payments-webhook` it will output your signing secret
9
+
STRIPE_WEBHOOK_SECRET=whsec_...
10
+
# You can find your Stripe customer portal URL in the Stripe Dashboard under the 'Customer Portal' settings.
0 commit comments