- Create a new project in the Cosmic dashboard.
- In your project, go to the Settings > Import / Export area.
- Download and install the Bucket JSON file to install the slideshow content model and demo content. See screenshot below:
Download this code:
git clone https://github.com/cosmicjs/cosmic-slideshow
cd cosmic-slideshowCopy the .example.env file to .env:
mv .example.env .envAdd 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_keyInstall packages
npm i
# or
pnpm i
# or
yarn i
# or
bun iRun locally
npm run dev
# or
pnpm run dev
# or
yarn dev
# or
bun dev