Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Boilerplate for building applications using Strapi and Next.js.
The Nextjs Strapi Boilerplate is a full-stack starter kit that pairs a Next.js frontend with a Dockerized Strapi headless CMS backend, pre-configured with GraphQL, Chakra UI, and NextAuth.
The Nextjs Strapi Boilerplate is a GitHub repository created by Nirmalya Ghosh that provides a ready-to-run foundation for building full-stack applications. It consists of two packages: a frontend folder containing a Next.js application and a backend folder containing a Dockerized Strapi application. The boilerplate supports GraphQL Query and Mutation out of the box, using Apollo Client on the frontend. It is written in TypeScript and uses Chakra UI with Emotion for styling. The repository is open source under the MIT License.
The boilerplate bundles a complete toolchain so you can start building immediately. Key features include:
frontend and backend packages, each with its own dependencies and configuration, in a single repository for easy collaboration and deployment.docker-compose up and exposes a GraphQL endpoint at http://localhost:1337/graphql..env file.NEXT_PUBLIC_API_URL, NEXT_PUBLIC_DATABASE_URL, NEXTAUTH_URL, GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET) predefined in the deployment flow.Developers and teams with these profiles will get the most value from this boilerplate:
The boilerplate supports a range of common full-stack scenarios, including:
The setup is described step by step in the repository's README. First, clone the repository and run yarn install inside the frontend directory. Copy .env.example to .env, then create a Google OAuth Client and add its credentials. Run the frontend with yarn dev, and it starts on http://localhost:3000. In a second terminal, navigate to the backend directory and run docker-compose up to start the Strapi server on port 1337. Finally, in the Strapi admin panel, you must allow permissions for all operations on the Feed content-type for Authenticated users and enable the Google provider before logging into the Next.js app with a Google account.
Yes, the project is open source and licensed under the MIT License, so you can use, modify, and distribute it freely.
You need Node.js, npm or Yarn, and Docker. The frontend requires Node.js and a package manager; the backend uses Docker Compose to run Strapi.
Yes, GraphQL Query and Mutation are supported out of the box. The Apollo Client integration is included in the frontend, and Strapi exposes a GraphQL playground at http://localhost:1337/graphql.
The backend deployment is not yet documented — the README says "We're still working on it." The frontend has a one-click Vercel deployment flow, but the backend must be hosted separately for now.
Yes. After starting Docker, you need to adjust Strapi permissions (allow operations on the Feed content-type for Authenticated users) and enable the Google provider in the Strapi admin panel before the frontend login works.
