Skip to content

cosmicjs/cosmic-slideshow

Repository files navigation

Cosmic Slideshow Template

Cosmic 2024 Year In Review

View the demo

Getting started

  1. Create a new project in the Cosmic dashboard.
  2. In your project, go to the Settings > Import / Export area.
  3. Download and install the Bucket JSON file to install the slideshow content model and demo content. See screenshot below:
CleanShot 2024-12-18 at 12 16 41@2x

Download and run locally

Download this code:

git clone https://github.com/cosmicjs/cosmic-slideshow
cd cosmic-slideshow

Copy the .example.env file to .env:

mv .example.env .env

Add your API keys found in the Cosmic dashboard located in Project > API keys.

COSMIC_BUCKET_SLUG=your_bucket_slug
COSMIC_READ_KEY=your_bucket_read_key

Install packages

npm i
# or
pnpm i
# or
yarn i
# or
bun i

Run locally

npm run dev
# or
pnpm run dev
# or
yarn dev
# or
bun dev