Skip to content

Commit 6b033f3

Browse files
001 multi tenant ecommerce (#64)
2 parents 1e92f84 + 0243baa commit 6b033f3

867 files changed

Lines changed: 200914 additions & 195007 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Dependencies
2+
node_modules/
3+
npm-debug.log*
4+
yarn-debug.log*
5+
yarn-error.log*
6+
7+
# Next.js
8+
.next/
9+
out/
10+
build/
11+
dist/
12+
13+
# Git
14+
.git/
15+
.gitignore
16+
17+
# Environment files
18+
.env*
19+
!.env.example
20+
21+
# Testing
22+
coverage/
23+
playwright-report/
24+
test-results/
25+
*.test.ts
26+
*.spec.ts
27+
28+
# Logs
29+
*.log*
30+
31+
# Documentation
32+
README.md
33+
docs/
34+
specs/
35+
36+
# Development files
37+
.idea/
38+
*.swp
39+
*.swo
40+
*~
41+
42+
# Vercel
43+
.vercel/
44+
45+
# OS
46+
.DS_Store
47+
Thumbs.db
48+
49+
# Prisma development database
50+
prisma/*.db
51+
prisma/*.db-journal
52+
53+
# TypeScript
54+
*.tsbuildinfo
55+
56+
# Temporary files
57+
*.tmp
58+
.cache

.env.example

Lines changed: 55 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,55 @@
1-
# Environment Configuration
2-
NODE_ENV=development
3-
4-
# Database
5-
DATABASE_URL="file:./dev.db"
6-
7-
# NextAuth.js
8-
NEXTAUTH_SECRET="your-secret-key-here-min-32-characters"
9-
# NEXTAUTH_SECRET="OeG4rPpuHsly3Lbi1rs/9u/lSyGAIRRyLfOh/4oKxac="
10-
NEXTAUTH_URL="http://localhost:3000"
11-
12-
# Vercel Blob Storage (for file uploads)
13-
BLOB_READ_WRITE_TOKEN="your-vercel-blob-token-here"
14-
15-
# Vercel KV (Redis for rate limiting and sessions)
16-
KV_URL="your-vercel-kv-url-here"
17-
KV_REST_API_URL="your-kv-rest-api-url-here"
18-
KV_REST_API_TOKEN="your-kv-rest-api-token-here"
19-
KV_REST_API_READ_ONLY_TOKEN="your-kv-read-only-token-here"
20-
21-
# Stripe Payment Gateway
22-
STRIPE_SECRET_KEY="sk_test_your-stripe-secret-key-here"
23-
STRIPE_PUBLISHABLE_KEY="pk_test_your-stripe-publishable-key-here"
24-
STRIPE_WEBHOOK_SECRET="whsec_your-stripe-webhook-secret-here"
25-
26-
# Email Service (Resend)
27-
RESEND_API_KEY="re_your-resend-api-key-here"
28-
RESEND_FROM_EMAIL="noreply@yourdomain.com"
29-
30-
# Sentry Error Monitoring (optional)
31-
NEXT_PUBLIC_SENTRY_DSN="your-sentry-dsn-here"
32-
SENTRY_AUTH_TOKEN="your-sentry-auth-token-here"
33-
34-
# Vercel Analytics (optional)
35-
NEXT_PUBLIC_VERCEL_ANALYTICS_ID="your-analytics-id-here"
1+
# Environment Configuration
2+
NODE_ENV=development
3+
4+
# Database
5+
DATABASE_URL="file:./dev.db"
6+
7+
# NextAuth.js
8+
NEXTAUTH_SECRET="your-secret-key-here-min-32-characters"
9+
# NEXTAUTH_SECRET="OeG4rPpuHsly3Lbi1rs/9u/lSyGAIRRyLfOh/4oKxac="
10+
NEXTAUTH_URL="http://localhost:3000"
11+
12+
# Vercel Blob Storage (for file uploads)
13+
BLOB_READ_WRITE_TOKEN="your-vercel-blob-token-here"
14+
15+
# Vercel KV (Redis for rate limiting and sessions)
16+
KV_URL="your-vercel-kv-url-here"
17+
KV_REST_API_URL="your-kv-rest-api-url-here"
18+
KV_REST_API_TOKEN="your-kv-rest-api-token-here"
19+
KV_REST_API_READ_ONLY_TOKEN="your-kv-read-only-token-here"
20+
21+
# Stripe Payment Gateway
22+
STRIPE_SECRET_KEY="sk_test_your-stripe-secret-key-here"
23+
STRIPE_PUBLISHABLE_KEY="pk_test_your-stripe-publishable-key-here"
24+
STRIPE_WEBHOOK_SECRET="whsec_your-stripe-webhook-secret-here"
25+
26+
# Email Service (Resend)
27+
RESEND_API_KEY="re_your-resend-api-key-here"
28+
RESEND_FROM_EMAIL="noreply@yourdomain.com"
29+
30+
# Sentry Error Monitoring (optional)
31+
NEXT_PUBLIC_SENTRY_DSN="your-sentry-dsn-here"
32+
SENTRY_AUTH_TOKEN="your-sentry-auth-token-here"
33+
34+
# Vercel Analytics (optional)
35+
NEXT_PUBLIC_VERCEL_ANALYTICS_ID="your-analytics-id-here"
36+
37+
# External Platform Integrations
38+
# Integration Service - AES-256-GCM encryption key (64 hex chars = 32 bytes)
39+
INTEGRATION_ENCRYPTION_KEY="0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
40+
41+
# Shopify Integration
42+
SHOPIFY_API_KEY="your-shopify-client-id-here"
43+
SHOPIFY_API_SECRET="your-shopify-client-secret-here"
44+
NEXT_PUBLIC_SHOPIFY_API_KEY="your-shopify-client-id-here" # For client-side OAuth
45+
46+
# Mailchimp Integration
47+
MAILCHIMP_CLIENT_ID="your-mailchimp-client-id-here"
48+
MAILCHIMP_CLIENT_SECRET="your-mailchimp-client-secret-here"
49+
MAILCHIMP_LIST_ID="your-default-mailing-list-id-here"
50+
51+
# App URL (for OAuth callbacks)
52+
NEXT_PUBLIC_APP_URL="http://localhost:3000"
53+
54+
55+
DEFAULT_STORE_ID="658e2186-eb0b-428f-a9e5-727524b5c9f7"

.eslintignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Dependencies
2+
node_modules/
3+
4+
# Next.js
5+
.next/
6+
out/
7+
build/
8+
dist/
9+
10+
# Testing
11+
coverage/
12+
playwright-report/
13+
test-results/
14+
15+
# Vercel
16+
.vercel/
17+
18+
# Generated files
19+
*.tsbuildinfo
20+
next-env.d.ts
21+
22+
# Prisma
23+
prisma/migrations/
24+
25+
# Config files
26+
*.config.js
27+
*.config.ts
28+
!tailwind.config.ts
29+
!next.config.ts
30+
!vitest.config.ts
31+
!playwright.config.ts
32+
33+
# Logs
34+
*.log

.eslintrc.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
{
2-
"extends": [
3-
"next/core-web-vitals"
4-
],
5-
"rules": {
6-
"no-console": ["warn", {
7-
"allow": ["warn", "error"]
8-
}]
9-
}
10-
}
1+
{
2+
"extends": [
3+
"next/core-web-vitals"
4+
],
5+
"rules": {
6+
"no-console": ["warn", {
7+
"allow": ["warn", "error"]
8+
}]
9+
}
10+
}

0 commit comments

Comments
 (0)