Adds the complete Next.js website including i18n routing, house and apartment pages, Beds24 v2 integration for live availability/pricing, Stripe checkout, contact forms, Docker setup and deployment docs. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
40 lines
1.7 KiB
Bash
40 lines
1.7 KiB
Bash
# Beds24 API (v2) — each house has its own separate Beds24 account/login,
|
|
# so each needs its own invite code exchanged for its own refresh token:
|
|
# 1. Log into that house's Beds24 account: Settings > Account > Apps/API >
|
|
# "Generate invite code" (scopes: inventory, later also "bookings")
|
|
# 2. Exchange once: curl -H "code: <invite-code>" https://api.beds24.com/v2/authentication/setup
|
|
# 3. Paste the returned "refreshToken" value below.
|
|
BEDS24_REFRESH_TOKEN_HERDWEG=your_beds24_refresh_token_for_herdweg
|
|
BEDS24_REFRESH_TOKEN_SCHOENAICHER=your_beds24_refresh_token_for_schoenaicher
|
|
|
|
# Stripe (one account per house)
|
|
NEXT_PUBLIC_BASE_URL=https://www.BB-Apartment.de
|
|
STRIPE_ACCOUNT_HERDWEWEG=acct_xxxxxxxxxxxxxxxx
|
|
STRIPE_ACCOUNT_SCHOENAICHER=acct_xxxxxxxxxxxxxxxx
|
|
STRIPE_SECRET_KEY_HERDWEWEG=sk_test_xxxxxxxxxxxxxxxx
|
|
STRIPE_SECRET_KEY_SCHOENAICHER=sk_test_xxxxxxxxxxxxxxxx
|
|
STRIPE_WEBHOOK_SECRET_HERDWEWEG=whsec_xxxxxxxxxxxxxxxx
|
|
STRIPE_WEBHOOK_SECRET_SCHOENAICHER=whsec_xxxxxxxxxxxxxxxx
|
|
|
|
# Database (used by Next.js and n8n)
|
|
DATABASE_URL=postgresql://bbapartment:changeme@postgres:5432/bb_apartment
|
|
POSTGRES_USER=bbapartment
|
|
POSTGRES_PASSWORD=changeme
|
|
POSTGRES_DB=bb_apartment
|
|
|
|
# n8n
|
|
N8N_BASIC_AUTH_USER=admin
|
|
N8N_BASIC_AUTH_PASSWORD=changeme
|
|
N8N_WEBHOOK_URL=https://n8n.bb-apartment.de/
|
|
|
|
# SMTP (own server) — used by the contact form (/api/contact) and, later,
|
|
# booking confirmation emails. Without these set, contact messages are just
|
|
# logged to the server console instead of sent (useful for local dev).
|
|
SMTP_HOST=mail.your-server.de
|
|
SMTP_PORT=587
|
|
SMTP_USER=your_smtp_user
|
|
SMTP_PASSWORD=your_smtp_password
|
|
SMTP_FROM=noreply@bb-apartment.de
|
|
# Inbox that receives contact form submissions (defaults to info@bb-apartment.de)
|
|
CONTACT_INBOX_EMAIL=info@bb-apartment.de
|