Next.js + TinaCMS + StrapiCMS
Features
- π₯ Next.js
- π¦ Tina CMS
- π Strapi CMS
- π Strict TypeScript
- βοΈ GraphQL
- π Storybook JS
- π¨ Tailwind CSS
- π πΌ PostCSS Autoprefixer
- π¨ ESLint & Type-Check
- πΆ Husky
- π€ SEO metadata and OpenGraph tags
- π Prettier
How to use
Install dependencies and run the example:
yarn install
yarn dev
Setup enviorment variables:
KEY | TYPE | DESCRIPTION | REQUIRED |
---|---|---|---|
STRAPI_URL | string | URL of deployed Strapi CMS | true |
NEXTJS_URL | string | host or domain | true |
TODO:
- Testing with Jest & React testing library
- Add github actions for linting and build
- Update usePlugin(form) on each blog post
- Fix date | Shows wrong date when date picker updates
- Manage About Us Page content in Strapi for example purposes
Documentation used to build this boilerplate
- https://tina.io/guides/#nextjs
- https://medium.com/@gogl.alex/how-to-set-up-typescript-eslint-prettier-for-next-gatsby-c5330b4a9b7a
- https://eslint.org/docs/user-guide/command-line-interface
- https://dev.to/risafj/how-to-set-up-eslint-with-standardjs-for-a-new-react-native-typescript-project-ebl
- https://nebulab.com/blog/nextjs-tailwind-storybook
- tailwindlabs/tailwindcss#2929
- https://github.com/vercel/next.js/blob/canary/examples/with-typescript-eslint-jest/package.json