Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Clean architecture starter for Next.js with TypeScript. All the tools you need to build your next project.
The Clean Arch Nextjs Starter is a Next.js and TypeScript boilerplate that provides a clean architecture foundation with TDD-oriented tooling, created by Yazalde Filimone and released under the MIT license.
The Clean Arch Nextjs Starter is a starting template for building Next.js 12 and React 18 applications with TypeScript. It scaffolds a project with a layered src directory, path mapping using the ~/ prefix, and a preconfigured code-quality toolkit including ESLint, Prettier, Husky, Commitlint, lint-staged, and EditorConfig. The template runs on Node.js version 12.22.0 or higher and is installed by using create-next-app with the repository URL.
src folder separates application code into layers such as presentation and shared, with path mapping configured so you can import with ~/ instead of long relative paths.src/shared/styles/globals.ts and an updated src/pages/_document.tsx; both can be removed if you don't use styled-components.yarn create next-app -e https://github.com/yazaldefilimonepinto/clean-arch-nextjs-starter (or the npm equivalent) to instantly create a Next.js app with all included tooling.lint script to run ESLint across the src directory, and rely on Husky/Commitlint to check commits before they land.npm dev or yarn dev to start the development server at http://localhost:3000 with hot reloading.src folder and the ~/ path mapping to maintain a clean separation of concerns.The template follows the standard Next.js workflow. After scaffolding, you run yarn dev or npm dev to start development at http://localhost:3000. Scripts are provided for building (yarn build), running in production (yarn start), and linting (yarn lint). The project uses a .husky directory for Git hooks and a public folder for static assets such as robots.txt and images.
The template is free to use. It is released under the MIT license, as shown in the License section of the repository.
You need Node.js version 12.22.0 or higher. The Requirements section of the README specifies this minimum version.
Run npm dev or yarn dev from the project root, then open http://localhost:3000 in your browser to see the application.
The template is labeled "Clean-Arch TDD NextJs" in its badge, and the repository name includes "tdd". However, the README does not document a specific testing library or setup, so you may need to inspect the repository to see what testing tools are present.
Yes. The README notes that if you don't use styled-components, you can remove the settings in src/pages/_document.tsx and delete the global styles in src/shared/styles/globals.ts.
Yes, it is offered under an MIT license, which allows free use, modification, and distribution with attribution.
