In this example we integrate Primer's Web SDK v2 headless with co-badged cards.
It uses Astro as the base tool, but feel free to build your website and server however you'd like.
Click here to immediately launch it on your browser.
Once it's open, make sure to:
- Rename
.env.example
to.env
- Get an
API_KEY
from your Primer Dashboard and paste it there- Example:
API_KEY=1234-1234-1234-1234
- Example:
- Install Bun
- Run
bun install
on a terminal - Follow the same instructions described on the section above about the
API_KEY
- Execute the following script on a terminal window:
bun start