NextJs Starter for ContentChef - Headless CMS
ContentChef is an Headless CMS designed to accelarete the development of modern,cross channel digital products.
This starter is a simple NextJS integrated with our Delivery API using the ContentChef JS/Typescript SDK
In this example plain JS is used, but our SDK is primarly written for Typescript applications!
In order to use make this starter work, you will need
- An active ContentChef account (sign up for a 30-day free trial here)
- Node JS >= 10.13
Clone the starter repo and install all the deps
git clone git@github.com:ContentChef/nextjs-starter.git
cd nextjs-starter
npm install
Get your SpaceID, Online API Key from your dashboard home page, if you plan to use preview you have to copy the PREVIEW api key
Copy the file .sample.env
to .env
and complete your spaceId , api key , for now you can use example-ch
You are now ready to start the nextjs server
npm run dev
Enjoy!
You can now visit https://localhost:3000/ and see the list of content fetched from Content Chef!
- ContentChef Website
- ContentChef Docs
- ContentChef Blog
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.