A Next.js starter with Contentful and Stripe wired up and ready to go.
- Next.js (App Router, TypeScript, Tailwind CSS)
- Contentful — CMS integration for managing page content
- Stripe — hosted checkout for one-time payments
Both integrations are optional. If you don't need one, see its README for removal instructions.
npm installcp .env.local.example .env.localOpen .env.local and fill in the values you need. Leave any blank that you aren't using.
npm run devOpen http://localhost:3000 to see the app.
src/
app/ # Pages and API routes (Next.js App Router)
lib/ # Contentful client and data fetching
stripe/ # Stripe client and setup docs
Each page follows the same pattern: a server component fetches data and passes it to a client component for rendering. This keeps API keys server-side and makes the data flow easy to follow.
- Contentful — CONTENTFUL.md
- Stripe — src/stripe/README.md