Ultimate template for Next.js with a pack of incredible tools
This is a template with all you need for your next web application. Aims for developers who really care about code quality, architecture, security and all the best practices in frontend.
Click on "Use this template" button
Configure your new repository and click on "Create repository from template" button
Now you can clone the generated repository to your local machine:
git clone https://github.com/<YOUR-GITHUB-LOGIN>/<NAME-OF-YOUR-GENERATED-REPOSITORY>.git
install dependencies:
Run the local development server:
You can generate a build to test and/or deploy to your production environment.
And then run the build:
You can run tests with this commands:
Run in watch mode:
Run to see the coverage:
You can run linting with this commands:
Run to automatically fix problems:
Run to check type errors:
You can run storybook with this commands:
yarn sb # alias to yarn storybook
Run to analyse production bundle:
Run to check for circular dependencies:
Run to check for unused dependencies:
Why not just components, hooks, styles, constants, etc.?Code organized by kind is one of the most popular ways for JavaScript developers to build their applications, structuring files based on what they are, without considering the different relationships between the files. It's a popular practice among developers who use patterns such as MVC. That’s okay when you work on small applications, but as the application grows, it can have a significant impact on the team's velocity.
When you work on a large project, it can be difficult to identify the origin of an issue. As a developer, you might spend a significant amount of time digging through thousands of lines of code until you understand all the relationships. In FSD, a project consists of layers (features, entities, shared, etc), each layer is made up of slices (aka modules) and each slice is made up of segments (model, ui, api, etc.). Slices cannot use other slices on the same layer, and that helps with high cohesion and low coupling. It helps maximize code sharing and reusability in different sections of your application and even in other projects.
See Feature-Sliced Design overview to understand how project is structured and organized.
Although you don't have to, if you reuse this template for your projects I would appreciate it if you would credit me and provide a link to my GitHub profile in the footer of your project. Thanks!
This project is licensed under the MIT License - see the LICENSE.md file for details
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4