Skip to content

Scout-NU/nextjs-template

Repository files navigation

Next.js Template

A Next.js starter with Contentful and Stripe wired up and ready to go.

What's included

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


Getting started

1. Install dependencies

npm install

2. Set up environment variables

cp .env.local.example .env.local

Open .env.local and fill in the values you need. Leave any blank that you aren't using.

3. Run the dev server

npm run dev

Open http://localhost:3000 to see the app.


Project structure

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.


Integrations

About

Scout template for Next.js applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors