Scripts in package.json
In addition to regular Next scripts, we provide some scripts to help with code-styling checks. This repo is configured with GitHub workflows to run linter checks on every push, but you can also run these checks locally, along with TypeScript checks, by running this script:
npm run check
Prettier is configured to be managed by ESLint, but you can always run it separately with
npm run prettier to check code-style, or with
npm run prettier:fix to auto-fix code-style issues in the project.
The data layer is abstracted by [Prezly Theme Kit]. You can get more info on it in the repo README.
Logic for content display is based heavily on [Prezly Theme Starter]. Check it out if you only want to see the bare minimum required to display data from Prezly newsrooms.
To ease with development we have created a few sample newsrooms in different categories:
- The Good Newsroom (preview on vercel): A newsroom filled with good news
- Cookbook (preview on vercel): Recipes shared by the Prezly team
- Anonymous Photographer (preview on vercel): Pictures from a photographer. Combination of albums and imagery
A list of tokens/newsroom uuids that can be used to kickstart the theme.