- 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-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