Next.js boilerplate for big and scalable projects
The Next.js boilerplate for big and scalable projects offered by Chillicode Production Agency aims to alleviate development headaches by providing a comprehensive set of tools and functionalities. It includes Next.js 10 as the framework, Storybook for developing UI components in isolation, MobX and MobX State Tree for application state management, SCSS with CSS Modules for styling, and various linters and code formatters for maintaining code quality. The boilerplate also includes pre-configured Gitlab CI/CD configuration, example components, and a structured file organization.
To get started with the Next.js boilerplate, make sure you have the following prerequisites:
To initialize the project, install the dependencies from the package-lock.json file by running the following command in your project directory:
npm install
To launch the development version, start the Next development server by running:
npm run dev
Then open http://localhost:3000.
To launch the Storybook development version, start the Storybook development server by running:
npm run storybook
Then open http://localhost:3001.
To launch both Next.js and Storybook in parallel, run the following command:
npm run dev:storybook
For code inspection, you can run all the linters in parallel using the following command:
npm run lint
If any issues are found, you can try to automatically fix them by running:
npm run lint:fix
The Next.js boilerplate offered by Chillicode Production Agency provides a powerful and efficient starting point for big and scalable projects. With its comprehensive set of tools, including Next.js, Storybook, MobX, SCSS, and various linters, developers can quickly set up their project and ensure code quality and maintainability from the start. The boilerplate also comes with pre-configured CI/CD setup and example components, further facilitating the development process.