An example setup using Next.js, Tailwind CSS, Font Awesome and Prismic for content.
This repository can be used as a template. If doing so, you'll need to provide an sm.json
file which contains Prismic configuration information. Use this code as a starting point:
{
"_latest": "0.3.0",
"apiEndpoint": "{apiEndpoint}",
"framework": "previousNext",
"libraries": ["@/slices"],
"localSliceSimulatorURL": "http://localhost:3000/slice-simulator"
}
You can retrieve the {apiEndpoint}
value by visiting your Prismic repository and navigating to Settings > API & Security > API endpoint.
To continue developing, clone your repository and follow these steps.
Setup dependencies:
yarn
Start the website:
yarn dev
In a new terminal, start SliceMachine:
yarn slicemachine
To use the Slice machine to develop custom types and slices:
yarn slicemachine