Install the Wedding Website template in Cosmic to install the required content model and demo content.
Download the code.
git clone https://github.com/cosmicjs/wedding-website
cd wedding-website
npm i
# or
yarn i
# or
bun i
# or
pnpm i
Create an .env
file
mv .example.env .env
Add your environment variables.
# .env
COSMIC_BUCKET_SLUG=
COSMIC_READ_KEY=
COSMIC_WRITE_KEY=
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
STRIPE_SECRET_KEY=
NEXT_PUBLIC_BASE_URL=
NEXT_PUBLIC_RECAPTCHA_SITE_KEY=
RECAPTCHA_SECRET_KEY=
NEXT_PUBLIC_BITCOIN_ADDRESS=
- Find your Cosmic API keys in Cosmic > Project > API Keys.
- Add your Stripe API keys.
- Add your Recapcha keys.
- Add a Bitcoin address (optional)
Then run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
Cosmic Documentation - learn about Cosmic features and API.
Deploy this template to Vercel.