Kickstart Next.js
Coding8m 58sReleased: May 27, 2025
Kickstart Next.js: Code Overview
A lightweight Next.js boilerplate to get you up and running with Contentstack—complete with live preview, Visual Builder support, and essential content types.
Features
- Barebones setup: Minimal code to connect a Next.js 15 app (using the App Router) to Contentstack.
- Live Preview: Instantly preview content edits in-context.
- Visual Builder: Click-to-edit UI overlays for titles, images, and rich text.
- Modular Blocks: Demonstrates Contentstack’s block-based content modeling.
- Rich Text & Images: Built-in support for rendering Contentstack rich text fields and media assets.
- Tailwind CSS: Utility-first styling out of the box.
Prerequisites
- Node.js >= 18
- Next.js 15 (App directory)
- A Contentstack account with:
- Stack API Key
- Delivery Token
- Environment (“development”, “preview”, etc.)
- Live Preview API Key
Extending the Kickstart
- Add Additional Content Types
Copy the pattern in lib/contentstack.ts to initialize and query new types—e.g., blog_post, author. - Modular Blocks
Explore modular blocks in the “Modular Blocks” demo page; see our Modular Blocks Docs. - Rich Text Customization
Use the @contentstack/rich-text-react-renderer to map rich-text JSON to custom React components. See the other video in the Kickstart Learning path. - Deployment
Host on Content Launch, Vercel, Netlify, or your preferred platform. Ensure environment variables are set for API keys & tokens.
Next Steps & Resources
- Deep-dive videos:
- Live Preview internals
- Modular Blocks usage
- Rich Text rendering
- Documentation:
- Community & Support:
- Join our Discord community for real-time help and discussion.
- Explore full courses on the Contentstack Academy.
Related Content
Project Managing a Contentstack Implementation
Course37m 56s
Using Workflows
Course7m 45s
Understanding Branches
Explainer5m 34s
Creating and Managing Content
Course20m 48s
Publishing Content
Course8m 29s
Structuring Content in Contentstack
Course26m 2s
Understanding the Dashboard
Explainer2m 54s
Understanding Organizations & Stacks
Explainer2m 15s
Understanding Automate
Explainer9m 39s
Exploring the JSON Rich Text Editor
Coding16m 40sContentstack Live Preview Under the Hood
Coding4m 17s
Seeding a New Stack with CLI
Coding1m 59s
A Simple PIM Setup for Contentstack
Coding8m 34s
Visual Builder Data Modeling Best Practices
Coding7m 3s
Understanding Contentstack
Explainer4m 6s