This is a Next.js project bootstrapped with create-next-app
.
- Sign up for a free IndiePitcher account
- Create a project
- Generate an API key
- Create
.env.local
file and add the API keyINDIEPITCHER_API_KEY=sc_xxxxxxxxxx
- Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
- Open http://localhost:3000.
- Look at actions under
src/app/actions
, you'll probably want to update the email to your email address. - Try the examples.
Please note that all the code sending emails is inside actions that will be run on the server, and not the client frontend code. This is intentional to avoid leaking your IndiePitcher API key.