This is a demo of how to use Polar with Nuxt and this implementation uses the sandbox
environment.
Make sure to install dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun install
Start the development server on http://localhost:3000
:
# npm
npm run dev
# pnpm
pnpm dev
# yarn
yarn dev
# bun
bun run dev
Sign up on sandbox.polar.sh to set up your accont. For the demo to work, you only need the following:
- POLAR_ACCESS_TOKEN
- POLAR_WEBHOOK_SECRET
Note: You can copy the .env.example
file and paste into .env
.