This repository is a ready-to-use template for building modern web applications with Strapi and Next.js. It provides a scalable monorepo structure using Yarn workspaces, shared configurations, and a seamless developer experience out of the box.
- Monorepo setup powered by Yarn workspaces for efficient dependency management
- Strapi backend for flexible headless CMS and API
- Next.js web frontend for building performant user interfaces
- Shared UI library for reusable React components
- Centralized TypeScript and ESLint configs for consistency
- Open Graph image for improved social sharing
├── apps/
│ ├── next/ # Next.js frontend app
│ └── strapi/ # Strapi backend app
├── packages/
│ ├── ui/ # Shared React UI components
│ ├── eslint-config/ # Shared ESLint config
│ └── typescript-config/ # Shared TypeScript config
├── opengraph.png # Open Graph image
└── package.json # Root package.json with workspace config
-
Install dependencies (using Yarn recommended):
yarn install
-
Develop locally:
yarn dev
Or run a specific app:
yarn workspace next dev yarn workspace strapi dev
-
Build for production:
yarn build
- Yarn workspaces for monorepo management
- Strapi for backend CMS/API
- Next.js for frontend
- TypeScript for type safety
- ESLint and Prettier for code quality
