Skip to content

cosmicjs/wedding-website

Repository files navigation

Wedding Website

View the demo

Getting started

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=
  1. Find your Cosmic API keys in Cosmic > Project > API Keys.
  2. Add your Stripe API keys.
  3. Add your Recapcha keys.
  4. 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.

Learn More

Cosmic Documentation - learn about Cosmic features and API.

Deploy

Deploy this template to Vercel.

Deploy with Vercel

Releases

No releases published

Packages

No packages published